GHHG10's picture
download
raw
507 Bytes
import { redirect } from "@solidjs/router"
import { APIEvent } from "@solidjs/start"
import { useAuthSession } from "~/context/auth"
export async function GET(event: APIEvent) {
const auth = await useAuthSession()
const current = auth.data.current
if (current)
await auth.update((val) => {
delete val.account?.[current]
const first = Object.keys(val.account ?? {})[0]
val.current = first
event!.locals.actor = undefined
return val
})
return redirect("/zen")
}

Xet Storage Details

Size:
507 Bytes
·
Xet hash:
0585654edeb7be294c7589787c3dead4a2170d806c01271e6690544f18b3c50a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.