Skip to content

Commit cfa514b

Browse files
committed
fmt
1 parent 0ed0edf commit cfa514b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/database/auth/auth-options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export const authOptions = (): NextAuthOptions => {
152152
async session({ token, session }) {
153153
if (!session.user) return session;
154154

155-
if (token && token.id) {
155+
if (token && token.id && typeof token.id === "string") {
156156
(session.user as { id: string }).id = token.id;
157157
session.user.name = token.name ?? null;
158158
session.user.email = token.email ?? null;

0 commit comments

Comments
 (0)