Login
This section provides instructions on using /auth/login endpoint to use for user login.
Last updated
This section provides instructions on using /auth/login endpoint to use for user login.
Last updated
export const LOGIN_STATUS = {
'CREDENTIALS_MISSING': 0,
'ACCOUNT_ALREADY_EXISTS': 1,
'ACCOUNT_NOT_VERIFIED': 2,
'USER_NOT_FOUND': 3,
'INVALID_PASSWORD': 4,
'HUBSPOT_INTEGRATION_FAILED': 5,
'HUBSPOT_INTEGRATION_SUCCESS': 6,
'SUCCESS': 7,
'LOGIN_FAILED': 8,
'INVALID_EMAIL': 9
}{
"message": "successfully logged in.",
"status": "success",
"token": "xxxxxxxxxxxxxxxxxxx",
"refreshToken": "xxxxxxxxxxxxxxxxxx",
"expirationTime": "2025-03-11T17:49:38.925Z",
"user": {
"email": "[email protected]",
"name": "John",
"active_project": null,
"created_at": "2025-03-05T11:04:49.875Z",
"updated_at": "2025-03-05T11:06:02.837Z",
"company_name": null
},
"loginStatus": 7
}