Use this file to discover all available pages before exploring further.
Use this endpoint to retrieve the full profile of the currently authenticated user. The response includes all stored fields from the user record — name, contact details, address, role, business name, profile picture, and subscription status. Authentication is required via a JWT stored in a cookie.
A lightweight endpoint to verify that the current session cookie is valid. Returns a 200 response with the decoded user if the JWT is valid, or 401 if the token is missing or expired.Authentication: Required (JWT cookie)Parameters: None
curl -X GET http://localhost:5000/user/isLoggedIn \ -b cookies.txt
Returns the decoded user payload on success. Useful for client-side session checks — if the response is 200, the session is active.