2 Respostas
- Mais recentes
- Mais votos
- Mais comentários
1
You need to send a POST request with your refresh token to the Cognito token endpoint.
ℹ️ In the previous link you will find some examples of requests and responses
1
Thank you, @Osvaldo Marte.
Request:
curl --location 'https://{your-cognito-domain}.auth.{aws-region}.amazoncognito.com/oauth2/token' \
--header 'Authorization: Basic {Base64Encode(client_id:client_secret)}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=refresh_token' \
--data-urlencode 'refresh_token={your_refresh_token}'
The response will be:
{
"id_token": "{id_token}",
"access_token": "{access_token}",
"expires_in": 3600,
"token_type": "Bearer"
}
respondido há 7 meses
Conteúdo relevante
- AWS OFICIALAtualizada há um mês
- AWS OFICIALAtualizada há 2 anos