Skip to content

Commit

Permalink
fix: remove async from NextAuth default handler
Browse files Browse the repository at this point in the history
This function should not return a Promise
  • Loading branch information
balazsorban44 committed Feb 1, 2021
1 parent 76b9832 commit 505efc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ async function NextAuthHandler (req, res, userOptions) {
}

/** Tha main entry point to next-auth */
export default async function NextAuth (...args) {
export default function NextAuth (...args) {
if (args.length === 1) {
return (req, res) => NextAuthHandler(req, res, args[0])
}
Expand Down

0 comments on commit 505efc8

Please sign in to comment.