Skip to main content
POST
Login

Description

Authenticate user and receive JWT tokens. Supports credentials provider with password verification.

Authentication

None (public endpoint)

Request Body

string
required
User email address
string
required
User password

Response

boolean
Whether the login was successful
object
User object with id, email, name, role, and planTier
object
JWT tokens (accessToken and refreshToken)
string
Success message

Example Request

Example Response

Error Responses

object
Missing email or password
object
Invalid credentials
object
Email not verified