blob: 293e9ede7da5aa0d2b979adc18ff89d59fb3dc7c (
plain)
1
2
3
4
5
6
7
8
9
10
|
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)
}
|