Skip to content

Commit

Permalink
Update auth config.
Browse files Browse the repository at this point in the history
  • Loading branch information
pheralb committed May 24, 2023
1 parent 1ec73a0 commit c089110
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ export const authOptions: NextAuthOptions = {
},
});
if (!dbUser) {
token.id = user?.id;
if (user) {
token.id = user?.id;
}
return token;
}
return {
Expand Down

1 comment on commit c089110

@vercel
Copy link

@vercel vercel bot commented on c089110 May 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sendcv – ./

sendcv-pheralb.vercel.app
sendcv-git-main-pheralb.vercel.app
sendcv.vercel.app

Please sign in to comment.