feat(auth): add Google OAuth support

This commit is contained in:
beilunyang
2025-12-07 17:50:27 +08:00
parent 3ad30301a9
commit dd109a464a
13 changed files with 162 additions and 36 deletions

3
types.d.ts vendored
View File

@@ -22,8 +22,9 @@ declare module "next-auth" {
interface User {
roles?: { name: string }[]
username?: string | null
providers?: string[]
}
interface Session {
user: User
}