Generate token return new access token with same expiry of old access token using which new access token is generated.
-
I am trying to generate new access token with new extended expiry, but when I generate new access token using old access token and refresh token it, returns new token but with same expiry of old token for example,
If I have access token A1 with expiry "05-01-2024 12:06:07" and using this "https://apiconnect.angelbroking.com/rest/auth/angelbroking/jwt/v1/generateTokens" api and get new token A2 but A2 also have same expiry "05-01-2024 12:06:07" of A1.
so, what to do to get new extended expiry access token? -
Hello @AakashR1,
As of now, the only way to generate new JWT token with new expiry is to login again. Generating another token using Refresh Token and old access token will generate a token with the same Expiry time.Thank you.
Regards
SmartAPI Team