diff --git a/app/api/auth/[...nextauth]/route.ts b/app/api/auth/[...nextauth]/route.ts index b1515f4..995b29c 100644 --- a/app/api/auth/[...nextauth]/route.ts +++ b/app/api/auth/[...nextauth]/route.ts @@ -123,7 +123,7 @@ export const authOptions: NextAuthOptions = { session.accessToken = token.accessToken as string; session.user = { ...session.user, - id: token.sub as string, + id: token.sub ?? '', first_name: token.first_name ?? '', last_name: token.last_name ?? '', username: token.username ?? '',