How to get user id?

Hi,

I am trying to get the user id once the user signs up. However when i use the useAuth0() hook. I only get the users object that only has a “sub” field. But it doesn’t contain the user id. I was wondering how I can explicitly get the user id. Thanks!

According to the link below, it is the sub field.
Link
Did you create a different field as the user’s id?

1 Like

Thanks for the reply. No i haven’t. I will try to use it see if that will work. Thanks alot!

1 Like

Perfect! Let us know if you have any other questions!