post__mfa_magic-link_activate
POST /mfa/magic-link/activate
Activate Magic Link MFA
Activate magic link multi-factor authentication during the setup process. This endpoint validates the magic link token and completes the MFA configuration.
TypeScript Client Library
// Note: This endpoint doesn't have a direct client method in the provided TypeScript client
// You would need to use the generic makeRequest method:
// this.makeRequest<any>('mfa/magic-link/activate', 'POST', {
// token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'
// });
Code Samples
# You can also use wget
curl -X POST https://backend.flashback.tech/mfa/magic-link/activate \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}'
Request Body
token
string
true
Magic link token received via email
Body parameter
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
Example responses
200 Response
{
"success": true,
"message": "Magic link MFA activated successfully"
}
400 Response
{
"success": false,
"error": "Invalid or expired token"
}
404 Response
{
"success": false,
"error": "User not found or inactive"
}
500 Response
{
"success": false,
"error": "Failed to activate magic link MFA"
}
Responses
Response Schema
Status Code 200
» success
boolean
false
none
Indicates if the request was successful
» message
string
false
none
Success message confirming activation
Status Code 400
» success
boolean
false
none
Indicates if the request was successful
» error
string
false
none
Error message describing the token issue
Status Code 404
» success
boolean
false
none
Indicates if the request was successful
» error
string
false
none
Error message describing the user issue
Status Code 500
» success
boolean
false
none
Indicates if the request was successful
» error
string
false
none
Error message describing the issue
Last updated
Was this helpful?