keyAuthentication

API endpoints for authentication and session management.

Base: /api/auth


Login

POST /api/auth/login

Request:

{
  "email": "[email protected]",
  "password": "your-password"
}

Response:

{
  "token": "eyJhbGciOiJIUzI1NiIs...",
  "user": {
    "id": "xxx",
    "email": "[email protected]",
    "name": "John Doe"
  }
}

Register

Request:


Me

Returns current user information.


Logout


Password Reset


OAuth

Redirects to OAuth provider for authorization.

Last updated

Was this helpful?