wavlake/catalog

[CATALOG] Refactor user creation

Opened this issue · 0 comments

Current flow:

  1. On new user signup, a Client app creates a new Firebase user
  2. This user's uid is the saved to the catalog db via the user create route, POST to /accounts
  3. The Client app queries catalog for the user details

New flow:

  1. On new user signup, a Client app creates a new Firebase user
  2. The Client app queries catalog for the user details, if the user is not found, catalog creates a new user with the uid embedded in the request auth token.