diff --git a/packages/auth-client/src/index.ts b/packages/auth-client/src/index.ts index 5758f8466..6a0517975 100644 --- a/packages/auth-client/src/index.ts +++ b/packages/auth-client/src/index.ts @@ -489,7 +489,7 @@ export class AuthClient { } public async logout(options: { returnTo?: string } = {}): Promise { - _deleteStorage(this._storage); + await _deleteStorage(this._storage); // Reset this auth client to a non-authenticated state. this._identity = new AnonymousIdentity();