Cloudflare Workers template

Your own OAuth 2.1& OpenID Connect server, on the edge

eetr-auth is a production-ready authorization server that runs entirely on Cloudflare Workers, D1, and R2. Fork it, point it at your domain, and deploy in minutes.

Built for the free CPU quota

Argon2id in Rust, off the hot path

Cloudflare limits CPU per isolate invocation — the Free plan caps it at 10 ms per request, far less than a properly-tuned Argon2id hash needs. eetr-auth isolates hashing in a dedicated Rust/Wasm Worker so the auth Worker stays cheap on its hot paths, and the hasher gets its own raised CPU budget.

How the argon-hasher works
apps/argon-hasher/wrangler.toml
[limits]
cpu_ms = 30000

[[services]]
binding = "ARGON_HASHER"
service = "argon-hasher"

  [services.props]
  internal = true

Practical guides