Refresh Driver Access Token
Refreshes an expired or expiring driver JWT access token using a valid refresh token.
🔒 Refresh Token Rotation: Every refresh operation securely revokes the submitted refresh token and generates a brand new token pair (
accessTokenandrefreshToken). If an already-revoked token is submitted or the driver has logged in on another device, the request is rejected withSESSION_REVOKED.
Endpoint Overview
-
Method:
POST -
Route:
/api/v1/driver/auth/refresh -
Authentication:
None (Refresh Token in Body) -
Content-Type:
application/json
Request Headers
Request Body Schema
Example Request Body
Response Body Schema (200 OK)
Response Examples
1. 200 OK — Tokens Rotated Successfully
2. 401 Unauthorized — Session Revoked (Concurrent Login on Another Device)
3. 401 Unauthorized — Invalid or Expired Refresh Token
Or:
4. 400 Bad Request — Validation Error (Missing refreshToken)
Status Codes Reference
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.