Skip to content

Commit

Permalink
fix(authentication-client): removeAccessToken throws error if storage…
Browse files Browse the repository at this point in the history
… not defined (#3195)
  • Loading branch information
foxhound87 committed Jun 7, 2023
1 parent d135526 commit b8e2769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/authentication-client/src/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}

0 comments on commit b8e2769

Please sign in to comment.