Skip to content

Commit b8e2769

Browse files
authored
fix(authentication-client): removeAccessToken throws error if storage not defined (#3195)
1 parent d135526 commit b8e2769

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/authentication-client/src/storage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ export class StorageWrapper implements Storage {
4444
}
4545

4646
removeItem(key: string) {
47-
return Promise.resolve(this.storage.removeItem(key))
47+
return Promise.resolve(this.storage?.removeItem(key))
4848
}
4949
}

0 commit comments

Comments
 (0)