diff --git a/packages/commerce-sdk-react/src/auth/index.ts b/packages/commerce-sdk-react/src/auth/index.ts index e440a36153..2f5b4b6998 100644 --- a/packages/commerce-sdk-react/src/auth/index.ts +++ b/packages/commerce-sdk-react/src/auth/index.ts @@ -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() }