Repository navigation
Show check-your-inbox message when signup needs email confirmation - #362
Merged
Merged
Conversation
✅ Deploy Preview for cl-portal-ucla ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
daniellehonn
approved these changes
Nov 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #265
What changed
signUpreturns no session (Supabase "Confirm email" is on), the page now shows a "Check your UCLA inbox to confirm your account" message instead of redirecting to/portal(which bounced to/login). It also skips the browserprofilesupsert in that case, since there's no session to run it with./login(emailRedirectTo).Database change (already applied to Supabase)
The existing
on_auth_user_createdtrigger onauth.usersalready created the profile row, but only setid,emailanddisplay_name. I updatedpublic.handle_new_user()so it also copiesfirst_name/last_name(trimmed) from the signup metadata. Without this, new members signing up with confirmation on would have no first/last name. Migration name:handle_new_user_copy_first_last_name.SQL
Testing
With "Confirm email" turned on in Supabase, I signed up with a new UCLA address on localhost:
profilesrow had the correctfirst_name,last_nameanddisplay_name"Confirm email" is now left on in Supabase.
Before launch: check SMTP
Check Authentication → Emails → SMTP Settings in Supabase. If the project still uses Supabase's built-in email sender, it only delivers to Supabase team members and is heavily rate-limited, so real members won't receive confirmation emails. If that's the case, set up a custom SMTP provider (e.g. Resend) before members start signing up.