From b8e27698f7958a91fe9a4ee64ec5591d23194c44 Mon Sep 17 00:00:00 2001 From: Claudio S Date: Wed, 7 Jun 2023 21:28:04 +0200 Subject: [PATCH] fix(authentication-client): removeAccessToken throws error if storage not defined (#3195) --- packages/authentication-client/src/storage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) } }