File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -335,7 +335,12 @@ class AsgardeoReactClient<T extends AsgardeoReactConfig = AsgardeoReactConfig> e
335335
336336 const config : AsgardeoReactConfig = ( await this . asgardeo . getConfigData ( ) ) as AsgardeoReactConfig ;
337337
338- if ( config . platform === Platform . AsgardeoV2 && typeof arg1 === 'object' && ! isEmpty ( arg1 ) ) {
338+ if (
339+ config . platform === Platform . AsgardeoV2 &&
340+ typeof arg1 === 'object' &&
341+ ! isEmpty ( arg1 ) &&
342+ ( 'flowId' in arg1 || 'applicationId' in arg1 )
343+ ) {
339344 const sessionDataKey : string = new URL ( window . location . href ) . searchParams . get ( 'sessionDataKey' ) ;
340345
341346 return executeEmbeddedSignInFlowV2 ( {
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ const AsgardeoProvider: FC<PropsWithChildren<AsgardeoProviderProps>> = ({
257257
258258 // TEMPORARY: Asgardeo V2 platform does not support SCIM2, Organizations endpoints yet.
259259 // Tracker: https://github.com/asgardeo/javascript/issues/212
260- if ( config . platform ! == Platform . AsgardeoV2 ) {
260+ if ( config . platform = == Platform . AsgardeoV2 ) {
261261 setUser ( extractUserClaimsFromIdToken ( decodedToken ) ) ;
262262 } else {
263263 try {
You can’t perform that action at this time.
0 commit comments