Logo
Explore Help
Sign In
kennethnym/aris
1
0
Fork 0
You've already forked aris
mirror of https://github.com/kennethnym/aris.git synced 2026-03-22 01:51:19 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
c38d9bc6a6eebf5fa8860600f61e701c040e6b7f
aris/apps/aris-backend/src/auth/index.ts

11 lines
170 B
TypeScript
Raw Normal View History

feat(backend): add BetterAuth email/password authentication - Add PostgreSQL connection (src/db.ts) - Configure BetterAuth with email/password (src/auth/index.ts) - Add session middleware for route protection (src/auth/session-middleware.ts) - Add registerAuthHandlers for mounting auth routes (src/auth/http.ts) - Rename index.ts to server.ts - Add .env.example with required environment variables Co-authored-by: Ona <no-reply@ona.com>
2026-01-25 16:21:00 +00:00
import { betterAuth } from "better-auth"
import { pool } from "../db.ts"
export const auth = betterAuth({
database: pool,
emailAndPassword: {
enabled: true,
},
})
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.3 Page: 217ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API