wip: zen
This commit is contained in:
parent
c87480cf93
commit
4ceabdffa0
156 changed files with 443 additions and 445 deletions
7
packages/console/app/src/routes/auth/authorize.ts
Normal file
7
packages/console/app/src/routes/auth/authorize.ts
Normal file
|
|
@ -0,0 +1,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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue