Refresh Token
Testing
POST
/auth/refresh/
BosOnline/auth
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/auth/refresh/' \
--header 'Content-Type: application/json' \
--data-raw '{
"refresh_token": "{{refresh_token}}"
}'
Response Response Example
200 - Success
{
"message": "Login successful",
"token": {
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expires_in": 3600,
"issued_at": "2025-06-15 03:00:07.429721+07",
"token_type": "Bearer"
},
"user": {
"id": 123,
"name": "John Doe",
"email": "john@example.com",
"role_id": 1,
"store_id": 456,
"staff_id": 789,
"store_name": "John Doe's Store",
"boscod": "token_from_boscod_api"
}
}
Request
Body Params application/json
Responses
Modified at 2025-06-20 03:35:55