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
23 changes: 0 additions & 23 deletions .changeset/flow-rate-limits.md

This file was deleted.

24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# seamless-auth-api

## 0.14.0

### Minor Changes

- 5bf51ca: Read the per-flow rate limits from system config, and document what a native client needs.

The OTP, magic link and OAuth limiters carried their values as constants: 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 suit a web audience and refuse a mobile one, because carriers put thousands of
subscribers behind one IPv4 address. The six limiters now read `flow_rate_limits` from system
config (`FLOW_RATE_LIMITS` from the environment on first boot), an object whose defaults are
exactly those constants, so an instance that sets nothing behaves as it did. A changed limit
applies on the next request; a changed `windowSeconds` builds a fresh limiter for that window.
`perIdentity` values guard the address and rarely need changing; `perIp` values are what a
deployment serving a native app raises.

`@seamless-auth/types` moves to 0.22.0, which adds the key, and `openapi.json` and the generated
types pick it up on the system config routes.

Docs gain a "Native and mobile clients" section in `api-contract.md` (RP ID and origins for iOS
and Android, magic link and OAuth destinations, the tenant-wide session lifetime, refresh reuse
detection, authenticator policy), a "Flow rate limits" section in `configuration.md`, and the
client SDK packages in `ecosystem.md`.

## 0.13.2

### Patch 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-api",
"version": "0.13.2",
"version": "0.14.0",
"description": "Seamless Auth API - A web application server for supporting a Seamless Auth server instance.",
"main": "index.js",
"type": "module",
Expand Down