diff --git a/packages/shared/src/cookieAuthStorageAdapter.ts b/packages/shared/src/cookieAuthStorageAdapter.ts index 88c25359..9c029ce1 100644 --- a/packages/shared/src/cookieAuthStorageAdapter.ts +++ b/packages/shared/src/cookieAuthStorageAdapter.ts @@ -14,12 +14,14 @@ export abstract class CookieAuthStorageAdapter implements StorageAdapter { }; } - protected abstract getCookie(name: string): string | undefined | null; + protected abstract getCookie( + name: string + ): string | undefined | null | Promise; protected abstract setCookie(name: string, value: string): void; protected abstract deleteCookie(name: string): void; - getItem(key: string): string | Promise | null { - const value = this.getCookie(key); + async getItem(key: string): Promise { + const value = await this.getCookie(key); if (!value) return null;