okta-vue icon indicating copy to clipboard operation
okta-vue copied to clipboard

How to obtain a new token using a refresh token

Open runingzebra opened this issue 3 years ago • 2 comments

The access token has a validity period of only 1 hour. If the validity period has expired, does the API support using a refresh token to obtain a new token instead of logging in again

runingzebra avatar Jan 10 '22 08:01 runingzebra

@runingzebra To use refresh token in your app add "offline_access" to the list of requested scopes. Refresh token must also be enabled in your app's configuration in the Okta Admin UI.

aarongranick-okta avatar Jan 10 '22 18:01 aarongranick-okta

@runingzebra To use refresh token in your app add "offline_access" to the list of requested scopes. Refresh token must also be enabled in your app's configuration in the Okta Admin UI.

can you give some code about this. i configured as you said seems not work. how can i verify i got the refresh token.

tangyiming avatar Nov 29 '22 12:11 tangyiming