2 回答
- 最新
- 投票最多
- 评论最多
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"
}
已回答 7 个月前
相关内容
- AWS 官方已更新 7 个月前
- AWS 官方已更新 2 年前
- AWS 官方已更新 7 个月前
- AWS 官方已更新 2 年前