Opus refactor

This commit is contained in:
Jon Staab
2026-03-27 14:39:37 -07:00
parent 77ea366c69
commit 8986e5481d
16 changed files with 265 additions and 745 deletions
+2 -2
View File
@@ -17,8 +17,6 @@ type AuthCache = {
expiresAt: number
}
let authCache: AuthCache | undefined
export class ApiError extends Error {
status: number
@@ -144,6 +142,8 @@ export type Identity = {
is_admin: boolean
}
let authCache: AuthCache | undefined
export async function makeAuth(): Promise<string | undefined> {
const current = account()
if (!current) return undefined