ignore: create key for new workspace
This commit is contained in:
parent
46927ee9a5
commit
25e53e090b
2 changed files with 17 additions and 0 deletions
7
cloud/app/src/routes/auth/logout.ts
Normal file
7
cloud/app/src/routes/auth/logout.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