Skip to content

Commit 7faa052

Browse files
Fix instance ID default value in hasAuthParamsResult calculation
1 parent 77be3eb commit 7faa052

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react/src/contexts/Asgardeo/AsgardeoProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ const AsgardeoProvider: FC<PropsWithChildren<AsgardeoProviderProps>> = ({
266266
}
267267

268268
const currentUrl: URL = new URL(window.location.href);
269-
const hasAuthParamsResult: boolean = hasAuthParams(currentUrl, afterSignInUrl) && hasCalledForThisInstance(currentUrl, instanceId ?? 1);
269+
const hasAuthParamsResult: boolean = hasAuthParams(currentUrl, afterSignInUrl) && hasCalledForThisInstance(currentUrl, instanceId ?? 0);
270270

271271
const isV2Platform: boolean = config.platform === Platform.AsgardeoV2;
272272

0 commit comments

Comments
 (0)