check-active-driver-session
Verifies if the current driver’s access token and session are active and valid. Specifically used as a heartbeat check to detect if the session was invalidated because the driver logged in on another device (Single-Device Login Enforcement).
Endpoint Overview
-
Method:
GET -
Route:
/api/v1/driver/auth/session/check -
Authentication:
Bearer Token (Driver JWT) -
Content-Type:
N/A
Request Headers
Request Body Schema
None (GET request)
Response Body Schema (200 OK)
Response Examples
1. 200 OK — Session Active
2. 401 Unauthorized — Session Revoked (Logged In on Another Device)
Enforced via single-device policy. When this error is returned, the mobile app should immediately log out the driver and redirect to the login screen:
3. 401 Unauthorized — Token Expired or Invalid
4. 401 Unauthorized — Missing Token
5. 403 Forbidden — Account Blocked / Deactivated
Status Codes Reference
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.