authhero 0.256.0 → 0.257.0
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/dist/authhero.cjs +1 -1
- package/dist/authhero.mjs +1 -1
- package/dist/stats.html +1 -1
- package/package.json +3 -3
package/dist/authhero.mjs
CHANGED
|
@@ -20149,7 +20149,7 @@ function cp(t) {
|
|
|
20149
20149
|
});
|
|
20150
20150
|
try {
|
|
20151
20151
|
const y = await U$(e, m);
|
|
20152
|
-
e.set("user_id", y.sub), e.set("user", y);
|
|
20152
|
+
e.set("user_id", y.sub), e.set("user", y), !e.var.tenant_id && y.tenant_id && e.set("tenant_id", y.tenant_id);
|
|
20153
20153
|
const v = y.permissions || [], $ = ((d = y.scope) == null ? void 0 : d.split(" ")) || [];
|
|
20154
20154
|
if (u.length && !// Should we check both?
|
|
20155
20155
|
(u.some(
|