We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8e2769 commit 261acbcCopy full SHA for 261acbc
packages/authentication-client/src/storage.ts
@@ -36,11 +36,11 @@ export class StorageWrapper implements Storage {
36
}
37
38
getItem(key: string) {
39
- return Promise.resolve(this.storage.getItem(key))
+ return Promise.resolve(this.storage?.getItem(key))
40
41
42
setItem(key: string, value: any) {
43
- return Promise.resolve(this.storage.setItem(key, value))
+ return Promise.resolve(this.storage?.setItem(key, value))
44
45
46
removeItem(key: string) {
0 commit comments