@salesforcedevs/dx-components 0.59.0-avatar-button-15 → 0.59.0-avatar-button-16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dx-components",
3
- "version": "0.59.0-avatar-button-15",
3
+ "version": "0.59.0-avatar-button-16",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -22,7 +22,8 @@
22
22
    |  
23
23
  -->
24
24
  <a
25
- href="https://development.developer.salesforce.com/tbid/logout"
25
+ href="#"
26
+ onclick={handleComponentLogout}
26
27
  class="inline-link"
27
28
  >
28
29
  Logout
@@ -107,10 +107,15 @@ export default class AvatarButton extends LightningElement {
107
107
  } else {
108
108
  // Always clear the session token; if not SSO logout, this will also revoke the token with
109
109
  // TBID; if SSO logout, that step is already taken care of
110
- const ifr = document.createElement('iframe');
111
- ifr.setAttribute('src', 'https://dev1-trailblazer-identity.cs192.force.com/secur/logout.jsp');
112
- document.body.appendChild(ifr);
113
110
  fetch(`${TBID_API_LOGOUT_URL}?isSsoLogout=${isSsoLogout}`); // no need to await this
111
+ if (!isSsoLogout) {
112
+ const ifr = document.createElement("iframe");
113
+ ifr.setAttribute(
114
+ "src",
115
+ "https://dev1-trailblazer-identity.cs192.force.com/secur/logout.jsp"
116
+ );
117
+ document.body.appendChild(ifr);
118
+ }
114
119
  }
115
120
  };
116
121