Skip to content

Commit ae5caeb

Browse files
fix: auth context determination (#8534)
1 parent f5b2276 commit ae5caeb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web-admin/src/features/projects/selectors.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ export async function fetchProjectDeploymentDetails(
133133
queryKey,
134134
queryFn,
135135
});
136+
136137
return {
137138
projectPermissions: projResp.projectPermissions,
138139
project: projResp.project,
@@ -141,7 +142,7 @@ export async function fetchProjectDeploymentDetails(
141142
instanceId: projResp.prodDeployment?.runtimeInstanceId,
142143
jwt: {
143144
token: projResp.jwt,
144-
authContext: "magic",
145+
authContext: token ? "magic" : "user",
145146
},
146147
},
147148
};

0 commit comments

Comments
 (0)