Unverified Commit 873bf5dd authored by Tuan Nguyen's avatar Tuan Nguyen Committed by GitHub

Remove an undefined parameter (#20762)

`getLoginSession` takes only one argument
parent a1a4af2d
...@@ -4,7 +4,7 @@ import { getLoginSession } from '../../lib/auth' ...@@ -4,7 +4,7 @@ import { getLoginSession } from '../../lib/auth'
export default async function logout(req, res) { export default async function logout(req, res) {
try { try {
const session = await getLoginSession(req, false) const session = await getLoginSession(req)
if (session) { if (session) {
await magic.users.logoutByIssuer(session.issuer) await magic.users.logoutByIssuer(session.issuer)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment