CORS uses a two-step authentication flow to protect access to institutional data. You first submit your username and password, then verify your identity using a 6-digit code sent to your registered email address. On success, CORS issues a session token that authorizes all subsequent requests.Documentation Index
Fetch the complete documentation index at: https://cors-lau.vercel.app/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authentication flow
The login process has two stages:Submit credentials
Send your username and password to the Response
/auth/login endpoint. If the credentials are correct, CORS sends a 6-digit verification code to your registered email address and returns a 2FA_REQUIRED status.Browser authentication
When you log in through the CORS web interface, the access token is set automatically as anhttponly cookie. You don’t need to handle the token manually — the browser includes it with every subsequent request until you log out.
When using CORS through the browser, your session is maintained automatically. You do not need to handle the token manually — the browser includes it with every subsequent request until you log out.
API authentication
If you are making programmatic requests directly to the CORS API, include the access token from the/auth/verify response as a Bearer token in the Authorization header:
access_token value from the /auth/verify response securely. Do not expose it in client-side code, logs, or version control.
Logging out
To end your session, send a POST request to/auth/logout. This clears the session cookie and invalidates the current session.
Error reference
| Status code | Error detail | What it means |
|---|---|---|
401 Unauthorized | Incorrect username or password | The username or password you submitted is wrong. Check your credentials and try again. |
401 Unauthorized | Invalid or expired verification code | The 6-digit code was incorrect or has already been used. Request a new code by restarting the login flow. |
404 Not Found | User not found | The username submitted in the /auth/verify step does not match a registered user. Contact your CORS administrator. |
Security considerations
- CORS sessions are time-limited. If your token expires, you will need to log in again.
- Do not share your credentials or access token with other users. Each user should have their own CORS account.
- If you suspect your account has been compromised, contact your CORS administrator immediately to have your credentials reset.