Im using a new feature of AWS Cognito, its an App integrated with User Pool for more detail see https://github.com/aws/amazon-cognito-auth-js. Here there is an example, in this example I can get the id token, the access token but the refresh token is empty.
I checked the documentation in Amazon Congito --> Amazon Cognito API Reference --> Amazon Cognito Auth API Reference --> AUTHORIZATION Endpoint
- For scope without openid
"The Amazon Cognito authorization server redirects back to your app with access token. Since openid scope was not requested, an ID token is not returned. A refresh token is never returned in this flow. Token and state are returned in the fragment and not in the query string".
- For scope with openid
"The authorization server redirects back to your app with access token and ID token (because openid scope was included)."
Note: Here dont said nothing about refresh token, but its response this endopoint is
Then ¿I dont know how a can refresh my id_token to use for more than an hour? (whit openid scope)