checkpoint
This commit is contained in:
@@ -45,7 +45,7 @@ export async function GET(event: APIEvent) {
|
||||
result.redirectTo
|
||||
);
|
||||
|
||||
// Vinxi's updateSession already set the cookie headers automatically
|
||||
// Auth handler already set cookie headers
|
||||
// Just redirect - the cookies are already in the response
|
||||
const redirectUrl = result.redirectTo || "/account";
|
||||
return new Response(null, {
|
||||
|
||||
@@ -45,7 +45,7 @@ export async function GET(event: APIEvent) {
|
||||
result.redirectTo
|
||||
);
|
||||
|
||||
// Vinxi's updateSession already set the cookie headers automatically
|
||||
// Auth handler already set cookie headers
|
||||
// Just redirect - the cookies are already in the response
|
||||
const redirectUrl = result.redirectTo || "/account";
|
||||
return new Response(null, {
|
||||
|
||||
@@ -45,7 +45,7 @@ export async function GET(event: APIEvent) {
|
||||
result.redirectTo
|
||||
);
|
||||
|
||||
// Vinxi's updateSession already set the cookie headers automatically
|
||||
// Auth handler already set cookie headers
|
||||
// Just redirect - the cookies are already in the response
|
||||
const redirectUrl = result.redirectTo || "/account";
|
||||
return new Response(null, {
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
import type { APIEvent } from "@solidjs/start/server";
|
||||
import { getEvent, clearSession } from "vinxi/http";
|
||||
import { sessionConfig } from "~/server/session-config";
|
||||
import { getEvent } from "vinxi/http";
|
||||
import { clearAuthToken } from "~/server/auth";
|
||||
|
||||
export async function POST() {
|
||||
"use server";
|
||||
const event = getEvent()!;
|
||||
|
||||
// Clear Vinxi session
|
||||
await clearSession(event, sessionConfig);
|
||||
clearAuthToken(event);
|
||||
|
||||
return new Response(null, {
|
||||
status: 302,
|
||||
|
||||
Reference in New Issue
Block a user