@aws-amplify/auth 4.6.0 → 4.6.1-unstable.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12855,7 +12855,7 @@ function () {
12855
12855
  logger.debug('Getting current session'); // Purposely not calling the reject method here because we don't need a console error
12856
12856
 
12857
12857
  if (!this.userPool) {
12858
- return this.rejectNoUserPool();
12858
+ return Promise.reject(new Error('No User Pool in the configuration.'));
12859
12859
  }
12860
12860
 
12861
12861
  return new Promise(function (res, rej) {