From ca2eef3d0819e78e2d85d557d3a650a0c407abcc Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Sun, 19 May 2024 18:11:41 +0200 Subject: [PATCH] Change access_token type to undefined instead of null --- auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth.ts b/auth.ts index cef7b71..e7b929e 100644 --- a/auth.ts +++ b/auth.ts @@ -7,7 +7,7 @@ const prisma = new PrismaClient() declare module "next-auth" { interface Session { - access_token: string | null; + access_token: string | undefined; } } @@ -33,7 +33,7 @@ export const { handlers, auth, signIn, signOut } = NextAuth({ }, }); - let accessToken: string | null = null; + let accessToken: string | undefined = undefined; if (getToken) { accessToken = getToken.access_token!; }