Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.01 KB

File metadata and controls

29 lines (22 loc) · 1.01 KB

better-auth-template

A cargo-generate template for better-auth-rs projects.

Usage

cargo generate better-auth-rs/better-auth-template

You will be prompted to choose a database adapter:

Adapter Description
memory In-memory (default), for development and prototyping
postgres PostgreSQL via SQLx, for production

Generated Endpoints

Method Path Description
POST /auth/sign-up/email Sign up with email/password
POST /auth/sign-in/email Sign in with email/password
GET /auth/get-session Get current session
POST /auth/sign-out Sign out
GET /auth/list-sessions List all sessions
POST /auth/forget-password Request password reset
POST /auth/reset-password Reset password with token
POST /auth/change-password Change password (auth required)