diff --git a/packages/authentication-client/src/storage.ts b/packages/authentication-client/src/storage.ts index 39e6817455..52ae5cbc3f 100644 --- a/packages/authentication-client/src/storage.ts +++ b/packages/authentication-client/src/storage.ts @@ -44,6 +44,6 @@ export class StorageWrapper implements Storage { } removeItem(key: string) { - return Promise.resolve(this.storage.removeItem(key)) + return Promise.resolve(this.storage?.removeItem(key)) } }