diff --git a/packages/auth-client/src/index.ts b/packages/auth-client/src/index.ts index 323bbfb3d..388a4afc6 100644 --- a/packages/auth-client/src/index.ts +++ b/packages/auth-client/src/index.ts @@ -488,7 +488,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();