App/Mobile Apps/android/Project/app/src/main/assets/public/default~firebase-messaging~login-login-module~signup-signup-module~student-ec-form-ec-form-module~st~88bf8aaa-es5.js
/**
     * Call only if FID is registered and Auth Token request is in progress.
     *
     * Waits until the current pending request finishes. If the request times out,
     * tries once in this thread as well.
     */
Call only if FID is registered and Auth Token request is in progress.
Waits until the current pending request finishes. If the request times out,
tries once in this thread as well.
Call only if FID is registered and Auth Token request is in progress . Waits until the current pending request finishes . If the request times out tries once in this thread as well .
function waitUntilAuthTokenRequest(dependencies, forceRefresh) {
      return Object(tslib__WEBPACK_IMPORTED_MODULE_2__["__awaiter"])(this, void 0, void 0, function () {
        var entry, authToken;
        return Object(tslib__WEBPACK_IMPORTED_MODULE_2__["__generator"])(this, function (_a) {
          switch (_a.label) {
            case 0:
              return [4
              , updateAuthTokenRequest(dependencies.appConfig)];
            case 1:
              entry = _a.sent();
              _a.label = 2;
            case 2:
              if (!(entry.authToken.requestStatus === 1
              )) return [3
                , 5]; 
              return [4
              , sleep(100)];
            case 3:
              _a.sent();
              return [4
              , updateAuthTokenRequest(dependencies.appConfig)];
            case 4:
              entry = _a.sent();
              return [3
              , 2];
            case 5:
              authToken = entry.authToken;
              if (authToken.requestStatus === 0
              ) {
                  return [2
                  , refreshAuthToken(dependencies, forceRefresh)];
                } else {
                return [2
                , authToken];
              }
          }
        });
      });
    }
function waitUntilAuthTokenRequest ( dependencies , forceRefresh ) { return Object ( tslib__WEBPACK_IMPORTED_MODULE_2__ [ "__awaiter" ] ) ( this , void 0 , void 0 , function ( ) { var entry , authToken ; return Object ( tslib__WEBPACK_IMPORTED_MODULE_2__ [ "__generator" ] ) ( this , function ( _a ) { switch ( _a . label ) { case 0 : return [ 4 , updateAuthTokenRequest ( dependencies . appConfig ) ] ; case 1 : entry = _a . sent ( ) ; _a . label = 2 ; case 2 : if ( ! ( entry . authToken . requestStatus === 1 ) ) return [ 3 , 5 ] ; return [ 4 , sleep ( 100 ) ] ; case 3 : _a . sent ( ) ; return [ 4 , updateAuthTokenRequest ( dependencies . appConfig ) ] ; case 4 : entry = _a . sent ( ) ; return [ 3 , 2 ] ; case 5 : authToken = entry . authToken ; if ( authToken . requestStatus === 0 ) { return [ 2 , refreshAuthToken ( dependencies , forceRefresh ) ] ; } else { return [ 2 , authToken ] ; } } } ) ; } ) ; }
Call only if FID is registered and Auth Token request is in progress.
Call only if FID is registered and Auth Token request is in progress .
/*yield*/ /* IN_PROGRESS */ /*break*/ // generateAuthToken still in progress. /*yield*/ // generateAuthToken still in progress. /*yield*/ /*break*/ /* NOT_STARTED */ // The request timed out or failed in a different call. Try again. /*return*/ /*return*/