Use this file to discover all available pages before exploring further.
The /me endpoint resolves the JWT supplied in the Authorization header and returns the full profile of the corresponding user. It is the canonical way to rehydrate a session — for example, on application load you can call this endpoint with the token stored in localStorage.classify_access_token to confirm the token is still valid and populate the authenticated user state. If the token is missing, malformed, or expired, the endpoint returns 401 and the client should clear the stored token and redirect to /login.
Must be in the format Bearer <accessToken>. Obtain the access token from the
login or register endpoints and persist it
in localStorage as classify_access_token.
curl -X GET http://localhost:3001/api/auth/me \ -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
Call GET /api/auth/me on application startup to validate a stored token before making any other authenticated requests. If the call succeeds you can trust the token is still valid and hydrate your user state from the response.