Skip to content

CE-2083: replace user* hooks with common

Christina Jenks requested to merge CE-2083-convert-useLogin-etc into develop

Replaces the useLogin, useLogin, and useUser* hooks with common

Affects:

  • login/logout and role functionality
  • user profile page

At a high level, it copies what is done in template-ui with some differences:

  • login sends userName instead of username 😩
  • user roles are pulled from a dedicated endpoint / aren't included in user response
  • userInfo is served in an array instead of just an object...mayyyyybe a point of improvement later?

Closes CE-2083, CE-2084, CE-2085, CE-2086, CE-2087

Edited by Christina Jenks

Merge request reports