Skip to content

Commit

Permalink
fix: logout clear storage missing promise await (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Aug 23, 2022
1 parent 04ce9d1 commit eab9f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/auth-client/src/index.ts
Expand Up @@ -489,7 +489,7 @@ export class AuthClient {
}

public async logout(options: { returnTo?: string } = {}): Promise<void> {
_deleteStorage(this._storage);
await _deleteStorage(this._storage);

// Reset this auth client to a non-authenticated state.
this._identity = new AnonymousIdentity();
Expand Down

0 comments on commit eab9f50

Please sign in to comment.