Auth0 Custom Database

Hi @cvasquez0100. This may be stretching my skills a bit (not an expert on SPAs & Vue) but to me it sounds like you want the following model, which should work fine:

  • on new user registration, use the Auth0 user.user_id attribute as a primary key in your DB,
  • on login, use a rule that queries your DB using user.user_id

I’d also consider creating your own unique identifier. user_id should work fine, but it is an Auth0 specific field. A possibly more portable option would be your own UUID. I have a rule below that adds a UUID to a user’s profile. It could probably be smarter but may be helpful if you want to go this route.