Create a new token from hosted UI
GET/token/from/hostedui
Create a new token from hosted UI
Request
Query Parameters
code stringrequired
The code obtained from AWS Cognito hosted UI.
Responses
- 200
- 401
- default
[DEMO https://playmakers-dev-1.auth.eu-north-1.amazoncognito.com/login?client_id=6cruoj7n773b9sfs41v1f7a7iu&response_type=code&scope=email+openid+phone&redirect_uri=http%3A%2F%2Flocalhost%3A3005%2Ftoken%2Ffrom%2Fhostedui ] Generate access token from code from AWS Cognito hosted UI.
- application/json
- Schema
- Example (from schema)
Schema
expires_in int64
refresh_token string
access_token string
token_type string
id_token string
{
"expires_in": 0,
"refresh_token": "string",
"access_token": "string",
"token_type": "string",
"id_token": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Unauthorized access"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "An unexpected error occured"
}
Loading...