@firecms/user_management 3.0.0-canary.145 → 3.0.0-canary.146

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.umd.js CHANGED
@@ -164,6 +164,9 @@
164
164
  allowDefaultRolesCreation,
165
165
  includeCollectionConfigPermissions
166
166
  }) {
167
+ if (!authController) {
168
+ throw Error("useBuildUserManagement: You need to provide an authController since version 3.0.0-beta.11. Check https://firecms.co/docs/pro/migrating_from_v3_beta");
169
+ }
167
170
  const [rolesLoading, setRolesLoading] = React.useState(true);
168
171
  const [usersLoading, setUsersLoading] = React.useState(true);
169
172
  const [roles, setRoles] = React.useState([]);
@@ -317,11 +320,6 @@
317
320
  const mgmtUser = users2.find((u) => u.email?.toLowerCase() === user?.email?.toLowerCase());
318
321
  return mgmtUser?.roles;
319
322
  }, [roles, usersWithRoleIds]);
320
- console.debug({
321
- loading,
322
- users,
323
- usersError
324
- });
325
323
  const authenticator = React.useCallback(({ user }) => {
326
324
  if (loading) {
327
325
  return false;