Change access_token type to undefined instead of null

This commit is contained in:
GHOSCHT 2024-05-19 18:11:41 +02:00
parent b4503db688
commit ca2eef3d08
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82

View file

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