feat(auth): accept direct Space launch assertions

This commit is contained in:
dadachann
2026-07-30 20:05:17 +00:00
parent 92d9db8f95
commit a5a26f81ee
+10 -2
View File
@@ -207,8 +207,16 @@ function SpaceOAuthCallbackContent() {
const errorDescription = searchParams.get('error_description'); const errorDescription = searchParams.get('error_description');
const mode = searchParams.get('mode'); const mode = searchParams.get('mode');
const state = searchParams.get('state'); const state = searchParams.get('state');
const workspaceUuid = searchParams.get('workspace_uuid'); const fragmentParams = new URLSearchParams(
const launchAssertion = searchParams.get('launch_assertion'); window.location.hash.startsWith('#')
? window.location.hash.slice(1)
: window.location.hash,
);
const workspaceUuid =
fragmentParams.get('workspace_uuid') ?? searchParams.get('workspace_uuid');
const launchAssertion =
fragmentParams.get('launch_assertion') ??
searchParams.get('launch_assertion');
if (error) { if (error) {
setStatus('error'); setStatus('error');