Make dashboard sign-up and password reset work with email confirmation; release 0.13.5 - #88
Merged
Merged
Conversation
…n; release 0.13.5 - Sign-up only signs in when Supabase returns a session; with "Confirm email" on it shows a check-your-inbox message instead of attempting a sign-in. The confirmation link returns to /organizations. - A PASSWORD_RECOVERY auth event anywhere routes to /reset-password, so a recovery link that Supabase redirected to the Site URL no longer just logs the user in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What changes
AuthContext.signUpnow returnsneedsConfirmationwhen Supabase doesn't return a session. The signup form then says "we sent a confirmation link" instead of trying to sign in immediately. The confirmation link now leads to/organizations.onAuthStateChangehandler sendsPASSWORD_RECOVERYto/reset-password. Previously, a recovery link that Supabase redirected to the Site URL simply logged the user in, so the reset email behaved like a login link.docs/release-0.13.5.mdadded, and the dashboard rebuilt intobackend/static.IMAGE_VERSIONis unchanged (v0.13.4), since this is a frontend-only change.Hosted project settings (already applied to prod-ow, not in the repo)
The root cause of the broken reset was that the Site URL was
http://localhost:3000and the redirect allowlist was empty. Now set:https://openweights.nielsrolf.comhttps://openweights.nielsrolf.com/**noreply@mail.nielsrolf.com, rate limit 30/hThe CLI
ow signupalready handles confirmation-required, since it stops and asks the user to confirm.Testing
tsc --noEmit -p tsconfig.app.jsonis clean.npm run buildsucceeds, and the bundle contains the recovery redirect./reset-password.🤖 Generated with Claude Code