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"
}
已回答 8 個月前
相關內容
- AWS 官方已更新 7 個月前
- AWS 官方已更新 2 年前
- AWS 官方已更新 6 個月前
- AWS 官方已更新 7 個月前