This commit is contained in:
Frank
2025-10-15 01:07:57 -04:00
parent 43c9702aa7
commit e8751d976e
3 changed files with 20 additions and 3 deletions

View File

@@ -30,6 +30,18 @@ export function formatDateUTC(date: Date) {
return date.toLocaleDateString("en-US", options)
}
export const queryIsLoggedIn = query(async () => {
"use server"
return withActor(() => {
try {
Actor.assert("account")
return true
} catch {
return false
}
})
}, "isLoggedIn.get")
export const querySessionInfo = query(async (workspaceID: string) => {
"use server"
return withActor(() => {