Cognito user pool (with device tracking ON): Session refresh fails with error - "Invalid Refresh Token" #1903
-
Issue What was attempted The initiate auth payload being sent out is as follows (refresh token is truncated, device key and client id are masked): Initiating refresh request: What else was attempted |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Is your setup the exact same as #851? What platform/OS are you using?What compiler are you using? what version?What's your CMake arguments?Can you provide a TRACE level log? (sanitize any sensitive information) |
Beta Was this translation helpful? Give feedback.
-
I am making the request from postman. What platform/OS are you using? What compiler are you using? what version? What's your CMake arguments? Can you provide a TRACE level log? (sanitize any sensitive information) An error occurred (NotAuthorizedException) when calling the InitiateAuth operation: Invalid Refresh Token. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
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…