@@ -23,6 +23,7 @@ import {
2323 BaseLoginParams ,
2424 BUILD_ENV ,
2525 DEFAULT_SESSION_TIME ,
26+ generateRecordId ,
2627 jsonToBase64 ,
2728 LoginParams ,
2829 POPUP_TIMEOUT ,
@@ -323,6 +324,7 @@ export class Auth {
323324 } ;
324325
325326 const loginId = StorageManager . generateRandomSessionKey ( ) ;
327+ const recordId = generateRecordId ( ) ;
326328
327329 const dataObject : AuthRequestPayload = {
328330 actionType : AUTH_ACTIONS . MANAGE_MFA ,
@@ -342,7 +344,7 @@ export class Auth {
342344 extraLoginOptions : {
343345 login_hint : this . state . userInfo . userId ,
344346 } ,
345- appState : jsonToBase64 ( { loginId } ) ,
347+ appState : jsonToBase64 ( { loginId, recordId } ) ,
346348 } ,
347349 sessionId : this . sessionId ,
348350 accessToken : await this . getAccessToken ( ) ,
@@ -351,6 +353,7 @@ export class Auth {
351353 this . storeAuthPayload ( loginId , dataObject , dataObject . options . sessionTime , true ) ;
352354 const configParams : BaseLoginParams = {
353355 loginId,
356+ recordId,
354357 sessionNamespace : this . options . sessionNamespace ,
355358 storageServerUrl : this . options . storageServerUrl ,
356359 } ;
@@ -528,9 +531,11 @@ export class Auth {
528531
529532 private async authHandler ( url : string , dataObject : AuthRequestPayload , popupTimeout = 1000 * 10 ) : Promise < AuthFlowResult | null > {
530533 const loginId = StorageManager . generateRandomSessionKey ( ) ;
534+ const recordId = generateRecordId ( ) ;
531535 await this . storeAuthPayload ( loginId , dataObject ) ;
532536 const configParams : BaseLoginParams = {
533537 loginId,
538+ recordId,
534539 sessionNamespace : this . options . sessionNamespace ,
535540 storageServerUrl : this . options . storageServerUrl ,
536541 } ;
0 commit comments