Two-factor authentication (2FA) adds a second verification step to your UniMaps login. After you enter your email and password, UniMaps emails you a short alphanumeric code that you must enter before access is granted. Even if someone obtains your password, they cannot log in without also having access to your email inbox.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Jcofles/Proyecto-web/llms.txt
Use this file to discover all available pages before exploring further.
How 2FA works in UniMaps
UniMaps uses email-based 2FA. When you log in with 2FA enabled:- You enter your email and password as usual.
- The server recognises that 2FA is active on your account and sends a 12-character alphanumeric code to your registered email address.
- A code-entry screen appears in the login form.
- You enter the code to complete authentication.
- A Sanctum Bearer token is issued and your session begins.
1Mau-80mQ-hqL2) to make it easier to read and type.
Enabling 2FA
2FA is off by default. To enable it, send an authenticated request to:Disabling 2FA
To turn off 2FA, send:Login flow when 2FA is active
Enter your email and password
Submit your credentials on the login screen. UniMaps validates them and detects that 2FA is enabled.
Check your inbox
A 12-character code is sent to your registered email address. Open your inbox (or spam folder) and locate the message from UniMaps.
Enter the code
Type the code into the verification field on the login screen. The code is formatted as
XXXX-XXXX-XXXX to help you transcribe it accurately.Verifying a 2FA code via the API
If you are integrating with the UniMaps API directly, verify the code with:200 response includes the token field you need for subsequent authenticated requests:
401 error. Restart the login flow to receive a fresh code.
The
email field in the verify request must match exactly the email used in the original login attempt that triggered the 2FA challenge.