Skip to content

Commit

Permalink
chore(examples): fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 authored and BowlingX committed Oct 5, 2022
1 parent 1989299 commit 41f6c12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/authsignal/passwordless-login/pages/api/login.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { NextApiRequest, NextApiResponse } from 'next'
import { authsignal } from '../../lib'

const redirectUrl =
process.env.REDIRECT_URL ?? 'http://localhost:3000/api/finalize-login'

export default async function login(req: NextApiRequest, res: NextApiResponse) {
if (req.method !== 'POST') {
return res.status(405).send({ message: 'Only POST requests allowed' })
Expand All @@ -12,6 +15,3 @@ export default async function login(req: NextApiRequest, res: NextApiResponse) {

res.redirect(303, url)
}

const redirectUrl =
process.env.REDIRECT_URL ?? 'http://localhost:3000/api/finalize-login'

0 comments on commit 41f6c12

Please sign in to comment.