diff --git a/src/server/auth/config.ts b/src/server/auth/config.ts index 06100f7..4c5fbe1 100644 --- a/src/server/auth/config.ts +++ b/src/server/auth/config.ts @@ -9,7 +9,7 @@ import { users, verificationTokens, } from '@/server/db/schema' - +type UserRole = 'user' | 'admin' /** * Module augmentation for `next-auth` types. Allows us to add custom properties to the `session` * object and keep type safety. @@ -22,7 +22,7 @@ declare module 'next-auth' { id: string discord_id: string // ...other properties - // role: UserRole; + role: UserRole } & DefaultSession['user'] } }