Authentication
OpenFinance uses BetterAuth for authentication. It supports email/password sign-up and optional Google OAuth.Auth Endpoints
BetterAuth exposes its endpoints under/api/auth/. The main endpoints are:
Session Management
When a user signs in, BetterAuth creates a session stored in the database and sets a session cookie in the browser. Session configuration:
The session token is stored in the
better-auth.session_token cookie. All authenticated API requests must include this cookie.
Sign Up
Create a new account by sending a POST request:- Minimum 8 characters
- Maximum 128 characters