GHHG10's picture
download
raw
431 Bytes
import type { APIEvent } from "@solidjs/start/server"
import { AuthClient } from "~/context/auth"
export async function GET(input: APIEvent) {
const url = new URL(input.request.url)
const cont = url.searchParams.get("continue") ?? ""
const callbackUrl = new URL(`./callback${cont}`, input.request.url)
const result = await AuthClient.authorize(callbackUrl.toString(), "code")
return Response.redirect(result.url, 302)
}

Xet Storage Details

Size:
431 Bytes
·
Xet hash:
ad1d047fb44e66643d526484e12d8536e858e33d5288eb8fed33b2504ceec5cf

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