Skip to content

feat(auth): add passwordless email otp routes#20028

Open
StaberindeZA wants to merge 6 commits intofxa-13016-otp-emailfrom
fxa-13014-add-passwordless
Open

feat(auth): add passwordless email otp routes#20028
StaberindeZA wants to merge 6 commits intofxa-13016-otp-emailfrom
fxa-13014-add-passwordless

Conversation

@StaberindeZA
Copy link
Contributor

@StaberindeZA StaberindeZA commented Feb 10, 2026

Because

  • Add necessary backend changes to enable passwordless signup and signin with email OTP.

This pull request

  • Adds PasswordlessHandler route handler
  • Adds passworldess send/resend/confirm routes
  • Adds tests for PasswordlessHandler

Issue that this pull request solves

Closes: # FXA-13014, # FXA-13015

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Screenshots (Optional)

Please attach the screenshots of the changes made in case of change in user interface.

Other information (Optional)

Any other information that is important to this pull request.

Copy link
Contributor

@vbudhram vbudhram left a comment

Choose a reason for hiding this comment

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

Just did a first pass mostly nits

authSalt,
clientSalt: undefined,
verifierVersion: this.config.verifierVersion,
verifyHash: Buffer.alloc(32).toString('hex'),
Copy link
Contributor

Choose a reason for hiding this comment

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

Not for this PR, but we do this in alot of places but might make sense to store a random value instead of 0s.


constructor(
private log: AuthLogger,
private db: any,
Copy link
Contributor

Choose a reason for hiding this comment

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

We have been moving towarding away from any types. These types should be defined in other routes so can use them.

}).then(assertions);
}

describe('/account/passwordless/send_code', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

We will probably want to add some tests for the account.ts changes as well. Verify the passwordlessSupported is returned.

Because:

- Add necessary backend changes to enable passwordless signup and
  signin with email OTP.

This commit:

- Adds PasswordlessHandler route handler
- Adds passworldess send/resend/confirm routes
- Adds tests for PasswordlessHandler

Closes #FXA-13014
@StaberindeZA StaberindeZA force-pushed the fxa-13014-add-passwordless branch from 47316ef to 939897a Compare February 13, 2026 18:53
@StaberindeZA StaberindeZA changed the base branch from main to fxa-13016-otp-email February 13, 2026 18:53
@StaberindeZA StaberindeZA marked this pull request as ready for review February 13, 2026 19:28
@StaberindeZA StaberindeZA requested a review from a team as a code owner February 13, 2026 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants