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.
2 parents a6b35ca + b24279d commit a5c685fCopy full SHA for a5c685f
packages/shared/src/cookieAuthStorageAdapter.ts
@@ -15,12 +15,14 @@ export abstract class CookieAuthStorageAdapter implements StorageAdapter {
15
};
16
}
17
18
- protected abstract getCookie(name: string): string | undefined | null;
+ protected abstract getCookie(
19
+ name: string
20
+ ): string | undefined | null | Promise<string | undefined | null>;
21
protected abstract setCookie(name: string, value: string): void;
22
protected abstract deleteCookie(name: string): void;
23
- getItem(key: string): string | Promise<string | null> | null {
- const value = this.getCookie(key);
24
+ async getItem(key: string): Promise<string | null> {
25
+ const value = await this.getCookie(key);
26
27
if (!value) return null;
28
0 commit comments