diff --git a/packages/aws-amplify/src/Auth/Auth.ts b/packages/aws-amplify/src/Auth/Auth.ts index ebc4b073708..54673f87fa5 100644 --- a/packages/aws-amplify/src/Auth/Auth.ts +++ b/packages/aws-amplify/src/Auth/Auth.ts @@ -84,7 +84,7 @@ export default class AuthClass { } configure(config) { - if (!config) return this._config; + if (!config) return this._config || {}; logger.debug('configure Auth'); const conf = Object.assign({}, this._config, Parser.parseMobilehubConfig(config).Auth, config); this._config = conf;