Developer Platform•1 min read
Magic Link & 2FA
For users who prefer passwordless login, Valstorm supports Magic Links with mandatory 2FA.
Requesting a Magic Link
Initiate the login process by providing an email address:
BASH
curl -X POST /auth/magic-login \
-H "Content-Type: application/json" \
-d '{"email": "[email protected]"}'Verifying the 2FA Code
The user will receive an email with a 6-digit code. Verify the code to obtain an access token:
BASH
curl -X POST /auth/verify-2fa \
-H "Content-Type: application/json" \
-d '{"email": "[email protected]", "code": "123456"}'