-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Built-in cognito page does not return the refresh_token #1231
Comments
That's because you're using the Implicit grant. In order to get the refresh token, you would have to use the Authorization code grant ( |
Thank you so much @Izzy26 ! 👍 I didn't know the role of 'code' value. I refered this page https://docs.aws.amazon.com/cognito/latest/developerguide/token-endpoint.html |
Glad to help :) Be careful though: if you are developing a javascript web app (SPA) that runs in the user's browser, using the Authorization code grant is not safe (as explained in the linked article in my previous post). |
Thanks @Izzy26 for your help. I am going to go ahead and close this issue. Feel free to reopen if you have any related questions or concerns. |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
I love the cognito built-in login page, but it does not return the refresh_token
Of course, the option is that "response_type=token"
I can only have the following information using built-in page
Why do not return the refresh_token?
The text was updated successfully, but these errors were encountered: