summaryrefslogtreecommitdiffhomepage
path: root/cloud/app
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-08-29 19:56:14 -0400
committerDax Raad <[email protected]>2025-08-29 19:56:29 -0400
commit25e53e090bec1f92fb6b2bbec52f7d1993836972 (patch)
tree7c651fbf53812d53dc97d46bbf8c854754326b4b /cloud/app
parent46927ee9a5830eaf8eaf5bf868a84765586b2b1e (diff)
downloadopencode-25e53e090bec1f92fb6b2bbec52f7d1993836972.tar.gz
opencode-25e53e090bec1f92fb6b2bbec52f7d1993836972.zip
ignore: create key for new workspace
Diffstat (limited to 'cloud/app')
-rw-r--r--cloud/app/src/routes/auth/logout.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/cloud/app/src/routes/auth/logout.ts b/cloud/app/src/routes/auth/logout.ts
new file mode 100644
index 000000000..166466ef8
--- /dev/null
+++ b/cloud/app/src/routes/auth/logout.ts
@@ -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)
+}