keycloakify 7.0.0-rc.12 → 7.0.0-rc.13

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.
@@ -110,14 +110,16 @@
110
110
  }
111
111
  };
112
112
 
113
- out["pageId"] = "${pageId}";
113
+ <#if account??>
114
+ out["url"]["getLogoutUrl"] = function () {
115
+ <#attempt>
116
+ return "${url.getLogoutUrl()}";
117
+ <#recover>
118
+ </#attempt>
119
+ };
120
+ </#if>
114
121
 
115
- out["url"]["getLogoutUrl"] = function () {
116
- <#attempt>
117
- return "${url.getLogoutUrl()}";
118
- <#recover>
119
- </#attempt>
120
- };
122
+ out["pageId"] = "${pageId}";
121
123
 
122
124
  return out;
123
125
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloakify",
3
- "version": "7.0.0-rc.12",
3
+ "version": "7.0.0-rc.13",
4
4
  "description": "Create Keycloak themes using React",
5
5
  "repository": {
6
6
  "type": "git",
@@ -110,14 +110,16 @@
110
110
  }
111
111
  };
112
112
 
113
- out["pageId"] = "${pageId}";
113
+ <#if account??>
114
+ out["url"]["getLogoutUrl"] = function () {
115
+ <#attempt>
116
+ return "${url.getLogoutUrl()}";
117
+ <#recover>
118
+ </#attempt>
119
+ };
120
+ </#if>
114
121
 
115
- out["url"]["getLogoutUrl"] = function () {
116
- <#attempt>
117
- return "${url.getLogoutUrl()}";
118
- <#recover>
119
- </#attempt>
120
- };
122
+ out["pageId"] = "${pageId}";
121
123
 
122
124
  return out;
123
125