summaryrefslogtreecommitdiffhomepage
path: root/cloud/app/src/context/auth.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cloud/app/src/context/auth.ts')
-rw-r--r--cloud/app/src/context/auth.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/cloud/app/src/context/auth.ts b/cloud/app/src/context/auth.ts
index 5f5642990..ef81cccf1 100644
--- a/cloud/app/src/context/auth.ts
+++ b/cloud/app/src/context/auth.ts
@@ -20,13 +20,10 @@ export const getActor = async (): Promise<Actor.Info> => {
if (!evt) throw new Error("No request event")
const url = new URL(evt.request.headers.has("x-server-id") ? evt.request.headers.get("referer")! : evt.request.url)
const auth = await useAuthSession()
+ auth.data.account = auth.data.account ?? {}
const splits = url.pathname.split("/").filter(Boolean)
if (splits[0] !== "workspace") {
- // TODO
- console.log("before current")
- console.log(`current: ${auth.data.current}`)
const current = auth.data.account[auth.data.current ?? ""]
- console.log("after current")
if (current) {
return {
type: "account",