mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: session auth issues
This commit is contained in:
parent
1708b36818
commit
08cc97f557
70 changed files with 607 additions and 427 deletions
15
apps/web/types/next-auth.d.ts
vendored
Normal file
15
apps/web/types/next-auth.d.ts
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import type { NextAuthOptions } from 'next-auth/index';
|
||||
|
||||
// next-auth.d.ts
|
||||
declare module 'next-auth' {
|
||||
interface Session {
|
||||
user: any | undefined
|
||||
roles?: string[] | undefined
|
||||
tokens?:
|
||||
| {
|
||||
access_token?: string | undefined
|
||||
refresh_token?: string | undefined
|
||||
}
|
||||
| undefined
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue