Skip to content

Cognito user pool (with device tracking ON): Session refresh fails with error - "Invalid Refresh Token" #1903

Answered by Rimsha-Naaz
Rimsha-Naaz asked this question in Q&A
Discussion options

You must be logged in to vote

I am making the request from postman.
Device tracking is enabled so I need to provide the device key while refreshing the token.
If I am providing the new device_key that is being returned from the rest-api "AuthFlow": "USER_PASSWORD_AUTH", the request is failing with 'Refresh token is invalid' error

What platform/OS are you using?
Windows 10 - Im trying to run the REST apis from postman

What compiler are you using? what version?
Windows

What's your CMake arguments?

Can you provide a TRACE level log? (sanitize any sensitive information)
aws cognito-idp initiate-auth --auth-flow REFRESH_TOKEN --client-id 4f3d97do353t4mts9qrlt93tbo --auth-parameters USERNAME=[email protected],REFRESH…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jmklix
Comment options

@jmklix
Comment options

Answer selected by jmklix
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
guidance Question that needs advice or information.
2 participants
Converted from issue

This discussion was converted from issue #1789 on April 06, 2022 22:03.