nextauthz 1.3.39 → 1.3.40
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/index.js +0 -1
- package/dist/index.mjs +0 -1
- package/package.json +1 -1
- package/src/RoleGuard.tsx +0 -3
package/dist/index.js
CHANGED
|
@@ -198,7 +198,6 @@ var RoleGuard = ({
|
|
|
198
198
|
if (!isAuthChecked) return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, { children: fallback });
|
|
199
199
|
if (!isAuthenticated) return null;
|
|
200
200
|
if (!role || !allowedRoles.includes(role)) return null;
|
|
201
|
-
console.log(role);
|
|
202
201
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, { children });
|
|
203
202
|
};
|
|
204
203
|
var RoleGuard_default = RoleGuard;
|
package/dist/index.mjs
CHANGED
|
@@ -177,7 +177,6 @@ var RoleGuard = ({
|
|
|
177
177
|
if (!isAuthChecked) return /* @__PURE__ */ jsx3(Fragment2, { children: fallback });
|
|
178
178
|
if (!isAuthenticated) return null;
|
|
179
179
|
if (!role || !allowedRoles.includes(role)) return null;
|
|
180
|
-
console.log(role);
|
|
181
180
|
return /* @__PURE__ */ jsx3(Fragment2, { children });
|
|
182
181
|
};
|
|
183
182
|
var RoleGuard_default = RoleGuard;
|
package/package.json
CHANGED