mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-26 20:24:21 +01:00
ignore: cloud
This commit is contained in:
@@ -32,7 +32,7 @@ export const getActor = query(async (): Promise<Actor.Info> => {
|
||||
},
|
||||
}
|
||||
}
|
||||
if (Object.keys(auth.data.account).length > 0) {
|
||||
if (Object.keys(auth.data.account ?? {}).length > 0) {
|
||||
const current = Object.values(auth.data.account)[0]
|
||||
await auth.update(val => ({
|
||||
...val,
|
||||
@@ -96,10 +96,9 @@ export interface AuthSession {
|
||||
}
|
||||
|
||||
export function useAuthSession() {
|
||||
|
||||
return useSession<AuthSession>({
|
||||
password: "0".repeat(32),
|
||||
name: "auth"
|
||||
name: "auth",
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user