feat(SW-162): Updated cookie name
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { createActionURL } from "@auth/core"
|
||||
import { cookies,headers as nextHeaders } from "next/headers"
|
||||
import { cookies, headers as nextHeaders } from "next/headers"
|
||||
import { NextRequest, NextResponse } from "next/server"
|
||||
import { AuthError } from "next-auth"
|
||||
|
||||
@@ -64,7 +64,7 @@ export async function GET(
|
||||
console.log({ logout_env: process.env })
|
||||
|
||||
const cookieStore = cookies()
|
||||
cookieStore.set("_SecureMFA-token", "", { maxAge: 0 })
|
||||
cookieStore.set("_MFA-validated-cookie", "", { maxAge: 0 })
|
||||
const headers = new Headers(nextHeaders())
|
||||
const signOutURL = createActionURL(
|
||||
"signout",
|
||||
|
||||
Reference in New Issue
Block a user