Hey i cant feth the username in users profile after creating a custom rule or action. is there anyway to fetch it ? do i use the useUser or getSession hook?
Hi @tradetokencr16,
Welcome to the Auth0 Community!
I have just checked your users on your tenant and noticed that they do not have a user_metadata.username value.
However, I see that some users do have the username attribute. To get this attribute correctly in a post-login action script, you should call the event.user.username property.
Let me know if you have any questions.
Thanks,
Rueben