Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .changeset/flow-rate-limits.md

This file was deleted.

22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# @seamless-auth/types

## 0.22.0

### Minor Changes

- c934d8f: Add `flow_rate_limits` to the system config, and pin the Android WebAuthn origin form.

`seamless-auth-api` limits how often one caller may start an OTP, magic link, or OAuth flow, on
top of the general `rate_limit`, with constants fixed in code: 10 OTP sends and 20 magic links per
IP per 15 minutes, 5 per address, 30 OAuth starts per IP and 10 per provider. Those are fine for a
web audience and wrong for a mobile one, because carriers put thousands of subscribers behind one
address. `flow_rate_limits` is an object key (`windowSeconds`, `otp.perIp`, `otp.perIdentity`,
`magicLink.perIp`, `magicLink.perIdentity`, `oauth.perIp`, `oauth.perProvider`) whose defaults
are exactly those constants, so a deployment that sets nothing behaves as it did, and a partial
value fills the flows it leaves out. `FlowRateLimitsSchema`, `FlowRateLimits` and
`DefaultFlowRateLimits` are exported; the patch schema accepts the key.

`origins` gains a test and a comment for the form Android reports, `android:apk-key-hash:<base64url>`,
which `z.url()` accepts as an opaque URL. It has to keep accepting it for native passkeys to
verify, and nothing said so until now.

Part of the mobile track, fells-code/seamless-templates#40.

## 0.21.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@seamless-auth/types",
"version": "0.21.0",
"version": "0.22.0",
"description": "Shared TypeScript types and Zod schemas for SeamlessAuth.",
"author": "Fells Code, LLC",
"license": "AGPL-3.0-only",
Expand Down