Skip to content

fix: Frontend no longer registers users in backend after Firebase signup #49

@ryanpolasky

Description

@ryanpolasky

Description

User signup and login currently only create Firebase Auth users. The frontend no longer calls the backend /register endpoint to create or sync users in the SQL database. This causes the backend to be unaware of new users and breaks any features that rely on backend user records.

Expected behavior

After a user signs up, the frontend should call POST /register so the backend can create the user in Firebase & the database.

Actual behavior

AuthContext only updates local auth state (currentUser, userLoggedIn) using onAuthStateChanged and does not call the backend at all. As a result, no database user record is created for new users.

Where to look

Look in src/contexts/authContext.tsx, and look for onAuthStateChanged/initializeUser . This is where the backend call should live iirc.

Metadata

Metadata

Assignees

Labels

Type: BugSomething isn't working

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions