feat(api): integrate Better Auth with Drizzle adapter and social providers
- Add Better Auth config with Google + GitHub social providers - Mount auth handler on /api/auth/* in Express - Generate and migrate auth tables (user, session, account, verification) - Deduplicate term_glosses data for tighter unique constraint - Drop legacy users table
This commit is contained in:
parent
cbe638b1af
commit
91a3112d8b
11 changed files with 1625 additions and 25 deletions
|
|
@ -4,7 +4,7 @@
|
|||
"description": "a vocabulary trainer",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "pnpm --filter @glossa/shared build && pnpm --filter @glossa/db build",
|
||||
"build": "pnpm --filter @glossa/shared build && pnpm --filter @glossa/db build && pnpm --filter @glossa/api build",
|
||||
"dev": "concurrently --names \"api,web\" -c \"magenta.bold,green.bold\" \"pnpm --filter @glossa/api dev\" \"pnpm --filter @glossa/web dev\"",
|
||||
"test": "vitest",
|
||||
"test:run": "vitest run",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue