fix: session auth issues

This commit is contained in:
swve 2024-05-27 20:58:32 +02:00
parent 1708b36818
commit 08cc97f557
70 changed files with 607 additions and 427 deletions

15
apps/web/types/next-auth.d.ts vendored Normal file
View 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
}
}