Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to obtain a new token using a refresh token #81

Open
runingzebra opened this issue Jan 10, 2022 · 2 comments
Open

How to obtain a new token using a refresh token #81

runingzebra opened this issue Jan 10, 2022 · 2 comments

Comments

@runingzebra
Copy link

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

@aarongranick-okta
Copy link
Contributor

aarongranick-okta commented Jan 10, 2022

@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.

@tangyiming
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants