blob: 166466ef859601533e6c9d1d47138293135f06f0 (
plain)
1
2
3
4
5
6
7
|
import type { APIEvent } from "@solidjs/start/server"
import { AuthClient } from "~/context/auth"
export async function GET(input: APIEvent) {
const result = await AuthClient.authorize(new URL("./callback", input.request.url).toString(), "code")
return Response.redirect(result.url, 302)
}
|