Skip to content

Commit

Permalink
sign in working
Browse files Browse the repository at this point in the history
  • Loading branch information
sharayu committed Jul 16, 2024
1 parent a84b28b commit d42c89b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions next-app/pages/api/auth/[...nextauth].ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ export default async function auth(req: any, res: any) {
}),
]

const isDefaultSigninPage =
req.method === "GET"
// const isDefaultSigninPage =
// req.method === "GET"

// Hide Sign-In with Ethereum from default sign page
if (isDefaultSigninPage) {
console.log("provider 1: ", providers);
providers.pop()
console.log("provider 1: ", providers);
}
// // Hide Sign-In with Ethereum from default sign page
// if (isDefaultSigninPage) {
// console.log("provider 1: ", providers);
// providers.pop()
// console.log("provider 1: ", providers);
// }

return await NextAuth(req, res, {
// https://next-auth.js.org/configuration/providers/oauth
Expand Down

0 comments on commit d42c89b

Please sign in to comment.