diff --git a/.changeset/sync-registration-delivery.md b/.changeset/sync-registration-delivery.md new file mode 100644 index 0000000..3b275f7 --- /dev/null +++ b/.changeset/sync-registration-delivery.md @@ -0,0 +1,5 @@ +--- +"@seamless-auth/core": patch +--- + +Refresh the bundled adapter manifest. `POST /registration/register` and `POST /registration/phone` are now marked as delivery routes, so with `messaging` configured an adapter serving them from the bundled manifest sends the message itself instead of leaving it to the auth API. diff --git a/packages/core/src/manifest/bundledManifest.ts b/packages/core/src/manifest/bundledManifest.ts index f6248bc..0ce68da 100644 --- a/packages/core/src/manifest/bundledManifest.ts +++ b/packages/core/src/manifest/bundledManifest.ts @@ -376,7 +376,8 @@ export const BUNDLED_ADAPTER_MANIFEST: AdapterManifest = { { "method": "POST", "path": "/registration/phone", - "credential": "access" + "credential": "access", + "delivery": true }, { "method": "POST", @@ -387,7 +388,8 @@ export const BUNDLED_ADAPTER_MANIFEST: AdapterManifest = { "method": "POST", "path": "/registration/register", "credential": "none", - "issues": "registration" + "issues": "registration", + "delivery": true }, { "method": "DELETE",