From 49e9131cfed4bc15fa2f75389741ef68c637788a Mon Sep 17 00:00:00 2001 From: keyan Date: Sun, 12 Nov 2023 10:46:06 -0600 Subject: [PATCH] don't return promise from authorize --- pages/api/auth/[...nextauth].js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/api/auth/[...nextauth].js b/pages/api/auth/[...nextauth].js index c099d2a0..cbdddd88 100644 --- a/pages/api/auth/[...nextauth].js +++ b/pages/api/auth/[...nextauth].js @@ -154,7 +154,7 @@ const providers = [ }, authorize: async ({ event }, req) => { const credentials = await nostrEventAuth(event) - return pubkeyAuth(credentials, new NodeNextRequest(req), 'nostrAuthPubkey') + return await pubkeyAuth(credentials, new NodeNextRequest(req), 'nostrAuthPubkey') } }), GitHubProvider({