-
Notifications
You must be signed in to change notification settings - Fork 192
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
check_token() renew after access_token expired does not work #109
Comments
@bjinwright any progress on this? Or is there any workarounds? |
Might be connected with the request that must be signed, although this does not require signed credentials. I'm looking into it right now. For the time being, try making the client request unsigned. |
we're not getting new ID and auth tokens after an hour, looking here: the authflow warrant is using is "REFRESH_TOKEN". from aws docs: happy to do a pull request if this is indeed an issue. |
anyone reading this? Please regard my PR? |
u = Cognito(pool_id, client_id, username=username, access_token=access_token, refresh_token=refresh_token)
u.check_token()
This throws 'NotAuthorizedException', when access_token expired.
Per documentation: https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-using-tokens-with-identity-providers.html, using refresh_token (default 30 days after user authenticate) is valid we should be able to refresh the id and access_token.
The text was updated successfully, but these errors were encountered: