Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create UserConfig document in Firebase upon user sign up #261

Open
h1divp opened this issue Sep 8, 2024 · 3 comments
Open

Create UserConfig document in Firebase upon user sign up #261

h1divp opened this issue Sep 8, 2024 · 3 comments
Labels
Backend📡 Issues corresponding to the backend/API. Feature New feature or request Medium You should have some familiarity with our codebase to work on this issue

Comments

@h1divp
Copy link
Collaborator

h1divp commented Sep 8, 2024

Related to #254.

After a user signs up for the first time in our app, we need a way to keep their settings permanent. The ConnectedUser collection in Firebase already semi-temporarily stores some data related to the user (such as location data, which we don't want to save long term) but is deleted as soon as the user closes the app (ie. signs out).

In order to do this, a UserConfig collection should be made after a new authentication account is created. In Firebase this collection is automatically created once a document under a new collection name has been received from the server. For creating these documents I would model off of pre-existing actions like server/src/actions/createConnectedUser.ts.

Then, endpoints to our REST api can be added to create/delete these documents. Focus only on creation for now as we currently have no method for user deletion. After this is done, this API call can be made from the client side next to the code for creating the firebase authentication account, when the user signs up for the first time.

Contact any tech lead if you need help with this issue.

@h1divp h1divp added Feature New feature or request Backend📡 Issues corresponding to the backend/API. Medium You should have some familiarity with our codebase to work on this issue labels Sep 8, 2024
@KOrtizLedezma
Copy link
Contributor

Im going to work on this one

@fmcubium
Copy link
Collaborator

Assigned.

@dyland88
Copy link
Collaborator

dyland88 commented Oct 1, 2024

Update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend📡 Issues corresponding to the backend/API. Feature New feature or request Medium You should have some familiarity with our codebase to work on this issue
Projects
None yet
Development

No branches or pull requests

4 participants