refactor(auth): migrate social login to next-auth

This commit is contained in:
2026-06-10 10:26:45 +08:00
parent 109a3e3855
commit a4b902893e
34 changed files with 572 additions and 1421 deletions
+19
View File
@@ -0,0 +1,19 @@
/**
* NextAuth App Router 入口
*
* 路径:/api/auth/[...nextauth]
* 自动处理 NextAuth 所有内置路由:
* /api/auth/signin/[provider]
* /api/auth/callback/[provider]
* /api/auth/signout
* /api/auth/session
* /api/auth/csrf
* /api/auth/providers
*/
import NextAuth from "next-auth";
import { authOptions } from "@/lib/auth/config";
const handler = NextAuth(authOptions);
export { handler as GET, handler as POST };