diff options
| author | Dax Raad <[email protected]> | 2025-08-29 11:58:17 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-08-29 11:58:17 -0400 |
| commit | 4496cd4b64e51805b790728e67a018791e731cd6 (patch) | |
| tree | e85cedfa322bd98e1f1443a725cb0dcd820891ac /cloud/app/src/context/auth.session.ts | |
| parent | 7f5e5fccc8d9248871d59e5adbfe52a7d307d09a (diff) | |
| download | opencode-4496cd4b64e51805b790728e67a018791e731cd6.tar.gz opencode-4496cd4b64e51805b790728e67a018791e731cd6.zip | |
ignore: cloud solid fixes
Diffstat (limited to 'cloud/app/src/context/auth.session.ts')
| -rw-r--r-- | cloud/app/src/context/auth.session.ts | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/cloud/app/src/context/auth.session.ts b/cloud/app/src/context/auth.session.ts new file mode 100644 index 000000000..c4b3940aa --- /dev/null +++ b/cloud/app/src/context/auth.session.ts @@ -0,0 +1,23 @@ +import { useSession } from "vinxi/http" + +export interface AuthSession { + account: Record< + string, + { + id: string + email: string + } + > + current?: string +} + +export function useAuthSession() { + return useSession<AuthSession>({ + password: "0".repeat(32), + name: "auth", + cookie: { + secure: false, + httpOnly: true, + }, + }) +} |
