Skip to main content

Module auth

Module auth 

Source
Expand description

Authentication handlers: user registration and session creation.

Both endpoints are unauthenticated (they sit outside the auth_guard middleware) and are mounted under /api/auth. They operate on the User and Session model types to manage identities and opaque session tokens.

Functionsยง

login
Authenticates a user and generates a new session token.
register
Registers a new user with the provided credentials.