From eab9f5023fb191ed419ecb6010f7a954adbf6773 Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Tue, 23 Aug 2022 17:47:09 +0200 Subject: [PATCH] fix: logout clear storage missing promise await (#612) --- packages/auth-client/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();