I have a small social media app build on vue.js, node.js (express), mysql. My users create an account with auth0 using an email. That email then gets added to my user’s table thanks to the auth0 custom database feature.
I know my users are already being authenticated. And I know if I wanna add more data to those users I can use foreign keys. But how do I obtain the user_id of the user that’s logged and add it to my API’s so it can display the user’s information?