From f19586cebd77a4d2092e6ff66fb184a1366a9ce4 Mon Sep 17 00:00:00 2001
From: Dax <mail@thdxr.com>
Date: Mon, 18 Aug 2025 17:12:21 -0400
Subject: fix anthropic console auth (#2049)

---
 cloud/app/src/context/auth.tsx | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 cloud/app/src/context/auth.tsx

(limited to 'cloud/app/src/context/auth.tsx')

diff --git a/cloud/app/src/context/auth.tsx b/cloud/app/src/context/auth.tsx
new file mode 100644
index 000000000..bec949568
--- /dev/null
+++ b/cloud/app/src/context/auth.tsx
@@ -0,0 +1,28 @@
+import { useSession } from "vinxi/http"
+import { createClient } from "@openauthjs/openauth/client"
+
+export const AuthClient = createClient({
+  clientID: "app",
+  issuer: "https://auth.dev.opencode.ai",
+})
+
+export interface AuthSession {
+  account: Record<string, {
+    id: string
+    email: string
+  }>
+  current?: string
+}
+
+export function useAuthSession() {
+  "use server"
+
+  return useSession<AuthSession>({
+    password: "0".repeat(32),
+    name: "auth"
+  })
+}
+
+
+export function AuthProvider() {
+}
-- 
cgit v1.2.3

