From ff02928dee30d40faaf33eefa5e9803bb0d646b5 Mon Sep 17 00:00:00 2001 From: peterpeterparker Date: Wed, 17 Aug 2022 08:40:54 +0200 Subject: [PATCH] fix: logout clear storage missing promise await --- 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 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();