Open
Labels
Description
Guiding rule for this phase: every capability ships as an open-source interface with a working zero-configuration default. Hosted infrastructure is a different implementation behind that same interface — never the only implementation, and never a different API.
Authentication ships OAuth across twelve providers, magic link, anonymous sign-in, TOTP multi-factor, asymmetric keys and scoped API keys. The methods below are the remaining ones, and each unlocks a category of application that cannot currently be built.
All of them are credentials plus an HTTP call, so they behave identically self-hosted and hosted.
Work
- Phone / SMS one-time codes, behind an
SmsProviderinterface with a development sink default - Email one-time codes (six digits) alongside magic link, for devices where opening a link is not practical
- Bot protection on sign-up, sign-in and password reset — hCaptcha and Cloudflare Turnstile
- Passkeys / WebAuthn. The translation strings already exist across the locales and in
packages/admin-types; the implementation does not - SAML 2.0 and SCIM, for organisations that provision users from a directory
Sequencing
If enterprise customers are a near-term goal, SAML and SCIM move to the front of this list; otherwise they follow passkeys.
Activity
fgatti675 commentedon Aug 25, 2026
Email one-time codes are done.
auth.emailOtp: true, orAUTH_EMAIL_OTP=true:rebase.auth.sendEmailOtp(email)/verifyEmailOtp(email, code)in the client, andemailOtpjoins the capability document — the wire-contract test caught its absence, which is what it is for.Six digits is a million possibilities, which is nothing to a machine, so the shape is what makes it safe. Each of these is load-bearing and separately tested:
otp:<email>:<code>, soverifyneeds both halves. A lookup keyed on the code alone would have made every account in the table a target of the same million guesses; this way a guess is a guess against one named account;mfaVerificationLimiteralready uses: an IP is the attacker's to rotate and the account under attack is not. Counts live in whatever store the deployment configured, soREBASE_RATE_LIMIT_STORE=sqlmakes the limit shared rather than per replica;randomIntrather than a modulo of random bytes;POST /auth/otpanswers identically for an address with no account, so it is not an oracle for "is this person a customer?".It reuses the magic-link token store rather than adding a table. A code and a link token are the same object — a hashed secret for one account, with an expiry and a used flag — so there is no schema change, no second cleanup path, and no second place for "was this already used?" to be answered differently.
AUTH_MAGIC_LINKarrives with it. Both flows were code-level flags only, so a bundle deployment — which is what every self-hosted and managed project runs — could not turn either on without rebuilding. Whether a deployment wants passwordless login is a property of the deployment.Phone / SMS was deliberately not started, and the reason is worth recording here rather than discovering later. It is not the
SmsProviderinterface that is missing — that part is an afternoon. It is that auth has no phone identity at all: no column on the user, no lookup, no answer to how a number gets attached and proved. Adding one is an auth-schema change across three drivers plus anAUTH_SCHEMA_VERSIONstamp, and a set of product decisions (self-service or admin-set? does a phone log you in, or only step up a session that already exists?). Building the provider interface first would have left an abstraction with no consumer, which is the shape of a marker that looks implemented and never worked. It deserves its own issue.Passkeys have the same shape — a credentials table, an auth-schema change — and the translation strings that already exist across the locales are not evidence to the contrary.
Landed on
mainlocally and not pushed — pushing to main publishes a canary, which is yours to trigger.feat(auth): six-digit sign-in codes by email