You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 24, 2018. It is now read-only.
(side note: I hope someone is working on the documentation for this repo.. a bunch of use cases in the README doesn't cut it)
I have an app where a user might be using it for well over an hour. During that time, the ID and access tokens expire, and errors are thrown when trying to access AWS services that expect the user to be authorized via Cognito.
How/when do we properly detect expiration? And how do we refresh those tokens seamlessly so the user doesn't experience any interruptions?
The text was updated successfully, but these errors were encountered:
You can basically wrap your calls in a call to getSession in which case the SDK always checks if the access token is valid and if not it uses the refresh token to retrieve a new access token.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
(side note: I hope someone is working on the documentation for this repo.. a bunch of use cases in the README doesn't cut it)
I have an app where a user might be using it for well over an hour. During that time, the ID and access tokens expire, and errors are thrown when trying to access AWS services that expect the user to be authorized via Cognito.
How/when do we properly detect expiration? And how do we refresh those tokens seamlessly so the user doesn't experience any interruptions?
The text was updated successfully, but these errors were encountered: