Skip to content

Commit

Permalink
minor fix :)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaRaj0001 committed Jul 6, 2024
1 parent d516c3c commit f67bfbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export const { handlers, signIn, signOut, auth } = NextAuth({
if (account.provider == "google") {
try {
const { email, name, image, id } = user;
const found=allowedEmails.find((email)=>email===email)
const found=allowedEmails.find((allowedemail)=>allowedemail===email)
console.log("found mail",found)

if(!found)return false;

Expand Down

0 comments on commit f67bfbc

Please sign in to comment.