checkpoint

This commit is contained in:
2026-01-21 12:22:19 -05:00
parent 1d8ec7a375
commit 58d48dac70
29 changed files with 287 additions and 2594 deletions

View File

@@ -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, {

View File

@@ -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, {

View File

@@ -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, {

View File

@@ -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,