SuperHub Logo
SuperHub
authentication

Authenticate User

Authenticates a user session and returns access & refresh tokens.

HTTP Request

POST /api/auth/login

Headers

HeaderValue
Content-Typeapplication/json

Request Body Parameters

FieldTypeDescription
emailstring
The email address of the user account. Required.
Example: "john@example.com"
passwordstring
The password of the user account. Required.
Example: "secretpassword"
RESPONSE PAYLOAD
{
  "success": true,
  "accessToken": "eyJhbGciOiJIUzI1Ni...",
  "refreshToken": "e29hN2RhNm..."
}