token-refresh
POST
/auth/token/refreshClaim a new Token using your refresh-token
Request
Body Params application/json
refreshToken
string
required
Example
{
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsImVtYWlsIjoia2V2aW5AcmN0LmFpIiwianRpIjoia2V2aW5AcmN0LmFpXzEiLCJpYXQiOjE2NTA0NDc0MzcsImV4cCI6NDI0MjQ0NzQzN30.0L0X34LSImyNTMoqPImjgHn8kCaj3CN8oc5YQYLf8eE"
}
Request samples
Responses
成功(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
token
string
required
refreshToken
string
required
expireAt
string
required
user
object
required
id
integer
required
email
string
required
identifier
string
required
createdAt
string
required
updatedAt
string
required
Example
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsImVtYWlsIjoia2V2aW5AcmN0LmFpIiwianRpIjoiMV9xMnF6aFg1YldQaE1MSWRRTWIyRnAiLCJpYXQiOjE2NTQ3NjQzMTIsImV4cCI6NDI0Njc2NDMxMn0.ED6iv3joM-w27E5G27tURo5b6fGP9QtyLdNmgV_92ic",
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsImVtYWlsIjoia2V2aW5AcmN0LmFpIiwianRpIjoiMV9XVkVSVU1WV3h2S2tBU3hOZ3hRV28iLCJpYXQiOjE2NTQ3NjQzMTIsImV4cCI6NDI0Njc2NDMxMn0.0hPHZx8pM6szzdrBeZOvT_J9-2bRq_22ObG8EFJt7P0",
"expireAt": "2022-07-09T08:45:12.687Z",
"user": {
"id": 1,
"email": "kevin@rct.ai",
"identifier": "c4be244d-c272-4a0b-914a-65b9b7e87bde",
"createdAt": "2022-04-24T06:30:07.000Z",
"updatedAt": "2022-04-24T06:30:07.000Z"
}
}
Last modified: 2 年前