2 Answers
- Newest
- Most votes
- Most comments
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"
}
answered 7 months ago
Relevant content
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 25 days ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago