A post-fetchUser hook to transform the user object #1621
Soviut
started this conversation in
Ideas & Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
It would be nice if there was a hook after fetchUser() is called that would allow the user object, and possibly the $auth object, to be transformed. This allows custom fields to be added that don't change unless the use is fetched again.
Describe the solution you'd like to see
Describe alternatives you've considered
Currently, we use an auth plugin to attach a
verified()
function to the$auth
object. This function needs to be called each time.Additional context
Beta Was this translation helpful? Give feedback.
All reactions