fix(auth): 🐛 Attempt to fix auth issue behind proxy
This commit is contained in:
@@ -49,6 +49,10 @@ if (process.env.FACEBOOK_CLIENT_ID && process.env.FACEBOOK_CLIENT_SECRET)
|
|||||||
)
|
)
|
||||||
|
|
||||||
const handler = (req: NextApiRequest, res: NextApiResponse) => {
|
const handler = (req: NextApiRequest, res: NextApiResponse) => {
|
||||||
|
if (req.method === 'HEAD') {
|
||||||
|
res.status(200)
|
||||||
|
return
|
||||||
|
}
|
||||||
NextAuth(req, res, {
|
NextAuth(req, res, {
|
||||||
adapter: CustomAdapter(prisma),
|
adapter: CustomAdapter(prisma),
|
||||||
secret: process.env.ENCRYPTION_SECRET,
|
secret: process.env.ENCRYPTION_SECRET,
|
||||||
|
|||||||
Reference in New Issue
Block a user