UniMaps uses a layered authentication system to keep your account and campus navigation data secure. Every request to protected features requires a valid session token, and you have multiple ways to prove your identity — even if you forget your password.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.
Authentication layers
UniMaps combines three independent mechanisms to protect your account:| Layer | When it applies |
|---|---|
| Email + password | Standard login for every session |
| Two-factor authentication (2FA) | Optional second step via email code |
| Secure key (.jw file) | Emergency access when email or password is unavailable |
How tokens work
After a successful login, the API issues a Laravel Sanctum Bearer token. UniMaps stores this token inlocalStorage under the key auth_token and attaches it to every subsequent API request as an Authorization header:
token field. If 2FA is enabled, the response instead returns "two_factor_required": true and no token — you must complete the code verification step first.
Login flow
2FA check (if enabled)
If you have two-factor authentication enabled, UniMaps emails you a 12-character code. Enter it on the verification screen. The code expires in 3 minutes.
Token issued
On successful authentication, the API returns a Sanctum Bearer token. The frontend saves it to
localStorage.Account statuses
Your account can be in one of four states. Your ability to log in depends on which state you are in:| Status | What it means for you |
|---|---|
| activo | Your account is verified and fully functional. |
| inactivo | Your account exists but is not currently accessible. Contact support. |
| bloqueado | Access has been suspended, usually after repeated failed login attempts or an admin action. You cannot log in while blocked. |
| eliminado | Your account has been soft-deleted and is no longer accessible. |
activo state can complete a login.
Brute-force protection
UniMaps limits incorrect login attempts to protect your account. After 5 consecutive failed attempts, your account is locked out for 15 minutes. During the lockout period the login button is disabled and a countdown timer is shown.Where to go next
Create an Account
Learn how to register and verify your email address to activate your UniMaps account.
Two-Factor Authentication
Add an extra layer of security by requiring a time-limited email code on every login.
Secure Key Recovery
Download your .jw recovery file and learn how to use it if you ever lose access to your password or email.