User Registration with Profile Fields #1790
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🎯 Problem
Previously, setting user profile fields (name, bio, profile_picture) required two API calls:
Register user with email/password
Update user to add profile fields
This caused verification emails to use email prefix instead of actual name since the name was set after registration.
💡 Solution
Combined registration and profile update into a single API call by:
Adding profile fields to initial user registration
Removing the separate update call after registration
Ensuring verification emails use actual name immediately
Important
Combine user registration and profile update into a single API call, adding
name
,bio
, andprofile_picture
fields to the registration process.users_router.py
.name
,bio
, andprofile_picture
fields toregister()
inauth_service.py
andr2r_auth.py
.users_router.py
.create_user()
inusers.py
to includename
,bio
, andprofile_picture
fields.register()
insupabase.py
to accept new fields.register()
inauth_service.py
to pass new fields toproviders.auth.register()
.register()
inr2r_auth.py
to handle new fields.This description was created by for d39fac2. It will automatically update as commits are pushed.