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 can I get refresh token ? #23

Open
shailendragautam123 opened this issue Jan 3, 2019 · 2 comments
Open

How can I get refresh token ? #23

shailendragautam123 opened this issue Jan 3, 2019 · 2 comments

Comments

@shailendragautam123
Copy link

shailendragautam123 commented Jan 3, 2019

I am using Custom Login page that uses the Okta Sign-In Widget within the Angular application to authenticate the user, I am successfully able to authenticate and getting access token and Id token. But I want to know how can get refresh token to get updated access token if current access token got expire. Please guide me.
Thanks

@aarongranick-okta
Copy link
Contributor

@shailendragautam123 By default, the SDK will auto renew tokens before they expire. This functionality can be disabled by setting autoRenew: false in the configuration.

@swiftone
Copy link
Contributor

Aaron describes the auto-renewal process - it may be worth noting that this is NOT done with a refresh token, as SPAs are not trusted with refresh tokens per OIDC recommended practices.

For more information on this particular topic, you can see https://developer.okta.com/docs/guides/refresh-tokens/overview/, but if you are just trying to get new access/id tokens while the users' SSO session with Okta is still valid, the auto renewal process described above covers that.

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