Skip to content

Commit

Permalink
Merge branch 'v3' into feature/template-extensibility-algo-refactor
Browse files Browse the repository at this point in the history
* v3:
  Fix missing commerce-sdk-react logout call (#1180)
  • Loading branch information
bfeister committed May 10, 2023
2 parents 9b86375 + 65ac429 commit 3190c1f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/commerce-sdk-react/src/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,11 @@ class Auth {
*
*/
async logout() {
// TODO: are we missing a call to /logout?
// Ticket: https://gus.lightning.force.com/lightning/r/ADM_Work__c/a07EE00001EFF4nYAH/view
// Not awaiting on purpose because there isn't much we can do if this fails.
void helpers.logout(this.client, {
accessToken: this.get('access_token'),
refreshToken: this.get('refresh_token_registered')
})
this.clearStorage()
return this.loginGuestUser()
}
Expand Down

0 comments on commit 3190c1f

Please sign in to comment.