first commit
This commit is contained in:
27
types/next-auth.d.ts
vendored
Normal file
27
types/next-auth.d.ts
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import type { DefaultSession } from 'next-auth'
|
||||
|
||||
declare module 'next-auth' {
|
||||
interface Session {
|
||||
accessToken?: string
|
||||
refreshToken?: string
|
||||
error?: string
|
||||
user: DefaultSession['user'] & {
|
||||
id?: string
|
||||
username?: string
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'next-auth/jwt' {
|
||||
interface JWT {
|
||||
accessToken?: string
|
||||
refreshToken?: string
|
||||
accessTokenExpires?: number
|
||||
error?: string
|
||||
user?: {
|
||||
id?: string
|
||||
email?: string
|
||||
username?: string
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user