Destroy the user session and log them out of your application.
Within the form action, import createBlankSession
"use server"import { cookies } from "next/headers"import { revalidatePath } from "next/cache"import { createBlankSession } from "@/auth" // Should be defined right after importsconst blankSession = createBlankSession() // ..export async function Logout() { const cookieName = blankSession.name cookies().delete(cookieName) // revalidate the current page cache revalidatePath("/")}