Skip to content

Commit

Permalink
add comment to auth
Browse files Browse the repository at this point in the history
  • Loading branch information
collinschaafsma committed Sep 25, 2024
1 parent 7688915 commit dba62bc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,9 @@ export const { auth, handlers, signIn, signOut } = NextAuth({
session.user.role = user.role
return session
},
async signIn({ user, profile, account }) {
if (user.id && account?.provider === "google") {
// user.image = profile?.avatar_url as string
}
async signIn({}) {
// You can add custom sign-in logic here, for example if you want to do a custom check for the user
// before signing them in.

return true
},
Expand Down

0 comments on commit dba62bc

Please sign in to comment.