mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-09 12:40:59 +00:00
feat(auth): accept direct Space launch assertions
This commit is contained in:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user