Skip to content

fix(routes): mark registration routes that support external delivery - #382

Merged
Bccorb merged 1 commit into
mainfrom
fix/registration-delivery-manifest
Oct 8, 2026
Merged

Bccorb merged 1 commit into
mainfrom
fix/registration-delivery-manifest

Conversation

@Bccorb

@Bccorb Bccorb commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #380, which was squash-merged before this commit reached it. Part of #371.

Why

/registration/register and /registration/phone return a delivery payload when a caller asks for external delivery, but the adapter manifest did not mark them as delivery routes. An adapter following the manifest would then pass the message to the browser instead of sending it, or never ask for external delivery at all.

What changes

  • Both routes declare adapter: { delivery: true } (register keeps issues: 'registration'), and adapter-manifest.json is regenerated.
  • A route that declares delivery must have a success response that can carry a delivery payload, so a declaration cannot drift from the schema. The reverse is not checked: the shared MessageSchema allows a delivery payload on routes that never send one.
  • The enrollment invites route is left out. It returns one delivery per recipient, which the adapters' delivery handling does not support yet.

No route changes shape. The changeset from #380 already covers the manifest. fells-code/seamless-auth-server#201 bundles a copy of the manifest and will be resynced once this merges.

Checks

npm run typecheck, npm run lint and npm run format:check are clean. npm run test:run: 135 files, 1796 passed.

/registration/register and /registration/phone return a delivery payload
when external delivery is requested, so adapters must deliver it rather
than pass it to the browser. A route that declares delivery now has to
have a success response that can carry one. The reverse is not checked,
because the shared MessageSchema allows a delivery payload on routes
that never send one.
@Bccorb
Bccorb merged commit 9d85db7 into main Oct 8, 2026
7 checks passed
Bccorb added a commit to fells-code/seamless-auth-server that referenced this pull request Oct 8, 2026
The bundled copy was generated before fells-code/seamless-auth-api#382
merged, so it did not mark /registration/register and /registration/phone
as delivery routes. Regenerated from the API's main branch.

Co-authored-by: Brandon Corbett <Bccorb@users.noreply.github.com>
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