Skip to content

feat: log in automatically after setting password in new invite flow - #12740

Merged
sjaanus merged 4 commits into
mainfrom
feat/invite-auto-login
Oct 14, 2026
Merged

sjaanus merged 4 commits into
mainfrom
feat/invite-auto-login

Conversation

@sjaanus

@sjaanus sjaanus commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

In the new invite signup flow (behind newInviteFlow), a user who signs up through an invite link is now logged in automatically and taken to /. Before, they were sent to the login screen to type the same credentials again.

  • After /invite/:secret/signup succeeds, the flow logs in with the same passwordAuth(authDetails.path, email, password) call that PasswordAuth uses, refetches the user and navigates to /.
  • If the automatic login fails, for example because password login isn't available, it falls back to the existing /login?invited=true redirect.
  • Password resets (?token= links) are unchanged and still redirect to /login?reset=true.

@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

setStep('password');
};

const logIn = async (password: string) => {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After user gets added, we are safe to log in.

disabled={!submittable}
>
Customize Unleash
Get started

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This button naming is more logical.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I never understood "Customize Unleash" either... Feel free to change it on the signup dialog as well.

@github-project-automation github-project-automation Bot moved this from New to Approved PRs in Issues and PRs Oct 14, 2026
@sjaanus
sjaanus merged commit e4b17f6 into main Oct 14, 2026
21 checks passed
@sjaanus
sjaanus deleted the feat/invite-auto-login branch October 14, 2026 15:15
@github-project-automation github-project-automation Bot moved this from Approved PRs to Done in Issues and PRs Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants