Storing user profile informationΒΆ
It is a common use-case to store extra information about your users other than
authentication related data to create a proper user profile (like name, age, address etc.). For this, you
should create a custom table in the data microservice and use that to store the extra user information.
To store profile information about your users:
- Create a table (eg:
user_profiles) in the data microservice. (refer Creating a table) - Along with all the columns you want to add to the table, add a column called
hasura_idof type Integer. - Whenever a successful signup happens, enter a row about that user in your
table. Save the
hasura_idvalue returned by the Auth API in thehasura_idcolumn to link the row to the auth user.
Was this page helpful?