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!; }