From 1afb2da7de3ed53bcc79181b8d2302eda84c263d Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Wed, 20 Dec 2023 12:08:20 +0000 Subject: [PATCH] added json headers --- pages/api/auth/[...nextauth].js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/api/auth/[...nextauth].js b/pages/api/auth/[...nextauth].js index 328c2e73..dfc3a835 100644 --- a/pages/api/auth/[...nextauth].js +++ b/pages/api/auth/[...nextauth].js @@ -144,7 +144,9 @@ const authOptions = (locale, req, res) => { "verification url API: " + url + "\n", "============================================================\n" ); - return res.status(200).json({ url: url }); + return res + .writeHead(200, { "Content-Type": "application/json" }) + .json({ url: url }); }, }, EmailProvider({