- sso
- admin
- applications
- auth
- auth-eth
- access
- newsletter
- user
- wallet
- Get API versionGET
token-refresh
POST
https://sso.dlab.ovh/api/auth/token/refresh
Request
Body Params application/json
refreshToken
string
required
Example
{
"refreshToken":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsImVtYWlsIjoia2V2aW5AcmN0LmFpIiwianRpIjoia2V2aW5AcmN0LmFpXzEiLCJpYXQiOjE2NTA0NDc0MzcsImV4cCI6NDI0MjQ0NzQzN30.0L0X34LSImyNTMoqPImjgHn8kCaj3CN8oc5YQYLf8eE"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://sso.dlab.ovh/api/auth/token/refresh' \
--header 'Content-Type: application/json' \
--data-raw '{
"refreshToken":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsImVtYWlsIjoia2V2aW5AcmN0LmFpIiwianRpIjoia2V2aW5AcmN0LmFpXzEiLCJpYXQiOjE2NTA0NDc0MzcsImV4cCI6NDI0MjQ0NzQzN30.0L0X34LSImyNTMoqPImjgHn8kCaj3CN8oc5YQYLf8eE"
}'
Responses
🟢200成功
application/json
Body
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"
}
}