Skip to content

test(verify): sign in again before stepping up with a new factor - #379

Merged
Bccorb merged 2 commits into
mainfrom
fix/verify-step-up-after-sign-in
Nov 27, 2026
Merged

Bccorb merged 2 commits into
mainfrom
fix/verify-step-up-after-sign-in

Conversation

@Bccorb

@Bccorb Bccorb commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Updates the conformance harness for two seamless-auth-api v0.24 behaviors.

  • A step-up only accepts a passkey or TOTP enrolled before the session signed in. stepUpOwner now takes a sign-in callback: when it enrolls the owner passkey it signs in again and steps up the new session, and it returns the token it stepped up. The step-up spec signs in again after enrolling TOTP before calling /totp/verify-mfa.
  • Registering an address that already has a verified account is answered as an unclaimed sign-up with no code sent. ownerAdminToken now goes through ownerAccessToken, which signs an existing owner in through /login and registers only when the account does not exist yet. The owner admin spec uses the same ownerSession helper and checks that the owner holds the admin role whether or not another spec registered it first.

Run by hand against the api project: 25 of 25 pass against seamless-auth-api main and against a build carrying the v0.24 step-up and pre-auth changes, including a fresh database where the owner passkey is enrolled during the run.

A step-up now only accepts a factor enrolled before the session signed in, and registering a verified address is answered as an unclaimed sign-up. The step-up spec and the owner helpers sign in again after enrolling, and an existing owner signs in through /login.
@Bccorb
Bccorb merged commit 06f78f8 into main Nov 27, 2026
6 checks passed
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.

1 participant