Skip to content

Commit 6c5d1c8

Browse files
chore: 删掉 NextAuth 残留依赖和文件 (#403)
认证早已迁到后端 Sa-Token,代码里已经没有任何 next-auth / @auth/* 的引用: - package.json 移除 next-auth、@auth/prisma-adapter(lockfile 同步;@types/node 写的是 "latest",重新解析顺带从 26.2.0 到 26.6.5) - 删 app/api/auth/[...nextauth]/README.md(描述的路由早就不存在)和 sql/nextauth_schema.sql(无引用) - .env.sample 去掉前端不读的 AUTH_GITHUB_* / AUTH_SECRET / AUTH_TRUST_HOST / AUTH_URL prisma/schema.prisma 里的 legacy 表按 CLAUDE.md 保留不动。 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 0e8ef10 commit 6c5d1c8

5 files changed

Lines changed: 27 additions & 301 deletions

File tree

‎.env.sample‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@ BACKEND_URL=http://localhost:8080
1212
# 触发 CORS,见 2026-04-20 踩坑记录(commit fix: hotdocs cors hardcode)。
1313
# NEXT_PUBLIC_BACKEND_URL=http://localhost:8080
1414

15-
# GitHub OAuth 配置 (由后端处理,此处仅作为示例配置参考)
16-
AUTH_GITHUB_ID=
17-
AUTH_GITHUB_SECRET=
18-
AUTH_SECRET=
19-
AUTH_GITHUB_ID_DEV=
20-
AUTH_GITHUB_SECRET_DEV=
21-
AUTH_TRUST_HOST=true
22-
AUTH_URL=http://localhost:3000
23-
2415
# 可选:用于访问 GitHub API(例如同步仓库)
2516
GITHUB_TOKEN=
2617

‎app/api/auth/[...nextauth]/README.md‎

Lines changed: 0 additions & 17 deletions
This file was deleted.

‎package.json‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"@assistant-ui/react": "^0.12.24",
3131
"@assistant-ui/react-ai-sdk": "^1.3.18",
3232
"@assistant-ui/react-markdown": "^0.12.8",
33-
"@auth/prisma-adapter": "^2.11.1",
3433
"@aws-sdk/client-s3": "^3.932.0",
3534
"@aws-sdk/s3-request-presigner": "^3.932.0",
3635
"@giscus/react": "^3.1.0",
@@ -68,7 +67,6 @@
6867
"lucide-react": "^0.544.0",
6968
"motion": "^12.23.16",
7069
"next": "16.2.11",
71-
"next-auth": "5.0.0-beta.32",
7270
"next-intl": "^4.9.2",
7371
"pg": "^8.18.0",
7472
"pinyin-pro": "^3.28.0",

0 commit comments

Comments
 (0)