FutsalLeague Manager uses a token-based authentication system to protect your account. Before you can access any personalised features — such as voting on match results, following teams, or viewing your prediction ranking — you need to register, verify your email address, and obtain a JWT token. This guide walks you through every step of that process.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Danielsl4/TFG_DAM_2526/llms.txt
Use this file to discover all available pages before exploring further.
Registration
To create a new account, send aPOST request to /register with a username, email, and password in the request body. Usernames and email addresses must be unique; the comparison is case-insensitive and accent-insensitive.
Submit your details
Send your chosen username, email, and password to the registration endpoint.A successful response returns HTTP
201 and a confirmation message:Check your inbox
You will receive a verification email at the address you provided. The email contains a unique link of the form:Click the link to verify your account and be automatically logged in.
Email Verification
Clicking the link in the verification email triggers aGET request to /verify-email/:token. On success, the server marks your account as verified and returns a JWT token so you are logged in straight away:
Resending the verification email
If the email never arrived or the link expired before you used it, you can request a new one:email or username — at least one is required. Note that the original 24-hour deletion window starts from account creation, not from when the resend was requested.
Login
Once your account is verified, log in by posting your credentials to/login. You may use either your username or your email address in the username field.
| Status | Meaning |
|---|---|
401 | Invalid username or password |
403 | Account not yet verified, or account has been deactivated |
Using the Token
Include your JWT token in theAuthorization header of every request that requires authentication:
Token Expiry
Token lifetime depends on your account role:| Role | Expiry |
|---|---|
user | 7 days |
admin / referee | 6 hours |
401 response. Simply log in again to obtain a fresh token.
Password Recovery
If you have forgotten your password, use the two-step recovery flow. Step 1 — Request a reset linkRate Limiting
All authentication endpoints (/register, /login, /forgot-password, /resend-verification) are protected by a rate limiter: a maximum of 10 attempts per IP address per 15-minute window. If you exceed this limit, you will receive a 429 response and must wait before trying again.