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:

  1. Create a table (eg: user_profiles) in the data microservice. (refer Creating a table)
  2. Along with all the columns you want to add to the table, add a column called hasura_id of type Integer.
  3. Whenever a successful signup happens, enter a row about that user in your table. Save the hasura_id value returned by the Auth API in the hasura_id column to link the row to the auth user.