Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions packages/react/src/ThunderIDReactClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,7 @@ class ThunderIDReactClient<T extends ThunderIDReactConfig = ThunderIDReactConfig
const firstArg: any = args[0];
const baseUrl: string = config?.baseUrl ?? '';

const authIdFromUrl: string = new URL(window.location.href).searchParams.get('authId') ?? '';
const authIdFromStorage: string =
((await this.getStorageManager().getHybridDataParameter('authId')) as string) ?? '';
const authId: string = authIdFromUrl || authIdFromStorage;

if (authIdFromUrl && !authIdFromStorage) {
await this.getStorageManager().setHybridDataParameter('authId', authIdFromUrl);
}
const authId: string = new URL(window.location.href).searchParams.get('authId') ?? '';

const response: any = await executeEmbeddedSignUpFlow({
authId,
Expand Down
10 changes: 1 addition & 9 deletions packages/vue/src/ThunderIDVueClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,15 +254,7 @@ class ThunderIDVueClient<T extends ThunderIDVueConfig = ThunderIDVueConfig> exte
const firstArg: any = args[0];
const baseUrl: string = configData?.baseUrl || '';

const authIdFromUrl: string | null = new URL(window.location.href).searchParams.get('authId');
const authIdFromStorage: string | null = (await this.getStorageManager().getHybridDataParameter('authId')) as
| string
| null;
const authId: string = authIdFromUrl || authIdFromStorage || '';

if (authIdFromUrl && !authIdFromStorage) {
await this.getStorageManager().setHybridDataParameter('authId', authIdFromUrl);
}
const authId: string = new URL(window.location.href).searchParams.get('authId') ?? '';

const response: any = await executeEmbeddedSignUpFlow({
authId,
Expand Down
Loading