Driver Logout (Single Device)
Logs out the driver from the current device by revoking the specified refresh token in the database and incrementing the driver’s session version, immediately invalidating any associated access tokens.
Endpoint Overview
-
Method:
POST -
Route:
/api/v1/driver/auth/logout -
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 — Success
2. 400 Bad Request — Validation Error (Missing refreshToken)
3. 500 Internal Server Error
Status Codes Reference
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.