Log in users by email and password.
POST
/api/auth/v1/login_mfa
const url = 'https://example.com/api/auth/v1/login_mfa';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"mfa_redirect_uri":"example","mfa_token":"example","pkce_code_challenge":"example","redirect_uri":"example","response_type":"token","totp":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/auth/v1/login_mfa \ --header 'Content-Type: application/json' \ --data '{ "mfa_redirect_uri": "example", "mfa_token": "example", "pkce_code_challenge": "example", "redirect_uri": "example", "response_type": "token", "totp": "example" }'Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” redirect_uri
string | null
mfa_redirect_uri
string | null
response_type
One of:
null
pkce_code_challenge
string | null
Request Body required
Section titled “Request Body required ” Media type application/json
object
mfa_redirect_uri
string | null
mfa_token
required
string
pkce_code_challenge
string | null
redirect_uri
string | null
response_type
One of:
null
totp
string | null
Responses
Section titled “ Responses ”Auth & refresh tokens.
Media type application/json
object
auth_token
required
string
csrf_token
required
string
refresh_token
required
string
Example generated
{ "auth_token": "example", "csrf_token": "example", "refresh_token": "example"}