-
Notifications
You must be signed in to change notification settings - Fork 19
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
Refresh token is not working as expected #188
Comments
Can someone please respond on the issue? |
@mikenachbaur-okta ^^^^ |
Hello @apoorv-trikha-ev, my apologies for the late response. The token should still remain in storage, and should be able to be loaded properly. After 6-7 days it's almost certain that the access token will have expired, so a refresh does seem necessary. It very well might be that the refresh token may have expired in the interim. If this happens, the user won't have any choice but to reauthenticate, unless the expiration time of the refresh token is extended. Additionally though, I wonder if you've seen the Credential.default API, which seems like it might be a much simpler way to track the current user's credential. It is built with the idea of quickly fetching a credential when only one is used, without you having to manually track the ID in your own storage. For example:
You can refer to the Managing User Credentials documentation for more information on the options available to you. |
@VasantHugar @apoorv-trikha-ev Have you managed to resolve this issue, or are you still experiencing problems with using the refresh token? Alternatively, do you have any feedback on the SDK and its credential storage capabilities? Your application may be needing to use the SDK in ways we hadn't anticipated, so I'd like to see if there's anything we can do to simplify your development. |
Describe the bug?
We are using OktaWebAuthenticationUI for Okta login into our iOS Swift app. When user signedIn on the app, we store the unique id of the token to fetch token based on unique id for later use
Store token and id
Fetch:
Above code works well and good until it expires. token is not getting refresh after 6-7days(expired).
Question:
What is expected to happen?
What is the actual behavior?
Refreshed token is not working even after calling
refreshIfNeeded()
funcReproduction Steps?
Steps
Additional Information?
No response
SDK Version(s)
pod 'OktaWebAuthenticationUI', '1.6.1'
Build Information
No response
The text was updated successfully, but these errors were encountered: