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ヶ月前
関連するコンテンツ
- 質問済み 1ヶ月前
- AWS公式更新しました 2年前