The login endpoint validates credentials against Supabase Auth usingDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Taykl12/Classify/llms.txt
Use this file to discover all available pages before exploring further.
signInWithPassword and returns a JWT access token, a refresh token, and the full user profile in a single response. After a successful login, persist the accessToken in localStorage under the key classify_access_token so that subsequent requests to protected endpoints can attach it as a Bearer token. Any 401 response anywhere in the application should clear this key and redirect the user back to /login.
Request
application/json
Body parameters
The email address associated with the Classify account.
The account password.
Response 200 OK
Short-lived JWT. Include this as
Authorization: Bearer <accessToken> on all requests to protected endpoints.Long-lived token that can be used to obtain a new access token when the current one expires.
Full profile of the authenticated user.
Error responses
| Status | Condition |
|---|---|
401 | Email not found or password is incorrect |
Examples
The Vite dev server proxies
/api/* from localhost:5173 to localhost:3001, so you can use the path /api/auth/login directly in frontend code without hardcoding the backend port.