feat: 配置 NextAuth.js 认证系统

- 支持邮箱密码登录
- 支持 Magic Link 登录(Resend)
- 配置 Session Provider
- 添加 TypeScript 类型定义
This commit is contained in:
张翔
2026-03-08 21:11:58 +08:00
parent 8ac9933ba4
commit 62e251c6f3
6 changed files with 151 additions and 7 deletions
+6
View File
@@ -0,0 +1,6 @@
import NextAuth from 'next-auth';
import { authOptions } from '@/lib/auth';
const handler = NextAuth(authOptions);
export { handler as GET, handler as POST };