SPA Authentication
SPA Login - Authenticate with email and password
Authenticates a user and returns JWT access token and refresh token. If 2FA is enabled, returns a 2FA token instead.
POST
/api/spa/auth/loginAuthorizations
X-AUTH-TOKEN
stringheaderrequired
Value for the X-AUTH-TOKEN header parameter.
Request Body
application/json
required
The new SpaLogin resource
{
"email": "user@example.com",
"password": "password123"
}Response
201
SpaLogin resource created
accessToken
string
JWT access token
refreshToken
string
Refresh token for obtaining new access tokens
expiresIn
integer
Access token lifetime in seconds
requiresTwoFactor
boolean
Indicates if 2FA verification is required
twoFactorToken
string
Temporary token for 2FA verification
method
string
2FA method (email)
user
object
User profile information