diff --git a/lib/TokenManager.ts b/lib/TokenManager.ts index cfd1c239c..c9d517d3e 100644 --- a/lib/TokenManager.ts +++ b/lib/TokenManager.ts @@ -10,6 +10,8 @@ * See the License for the specific language governing permissions and limitations under the License. * */ + +import EventEmitter from 'tiny-emitter'; import { removeNils, clone } from './util'; import { AuthSdkError } from './errors'; import { isRefreshTokenError, validateToken } from './oidc/util'; @@ -17,7 +19,6 @@ import { isLocalhost, isIE11OrLess } from './features'; import { TOKEN_STORAGE_NAME } from './constants'; import SdkClock from './clock'; import { - EventEmitter, Token, Tokens, TokenType, diff --git a/lib/types/index.ts b/lib/types/index.ts index a008c49f3..e5d1f75be 100644 --- a/lib/types/index.ts +++ b/lib/types/index.ts @@ -12,7 +12,6 @@ export * from './api'; export * from './AuthState'; -export * from './EventEmitter'; export * from './Transaction'; export * from './Cookies'; export * from './http'; diff --git a/tsconfig.json b/tsconfig.json index 0f158bac1..ad2c34881 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,6 +17,7 @@ "outDir": "./build", "resolveJsonModule": true, "esModuleInterop": true, + "allowSyntheticDefaultImports": true, "skipLibCheck": true, "rootDir": "./", "baseUrl": "./"