Repository navigation
Use passwordless setup and initialize auth without settings reads - #76
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | 06d527a | Oct 22 2026, 06:03 PM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Local operator passwords duplicated the existing Better Auth email-code login. Runtime construction also loaded and decrypted installation-wide settings before requests could reach their route. This change removes both paths: operator setup uses native OTP, while authentication is initialized from deployment configuration and organization settings are read by the operations that need them.
LOGIN_CODE_DELIVERY=emailis the default and requires an email adapter. Explicitconsolemode prints sign-in codes in the server log; deployment examples select this mode for operator setup. Invitations still require actual email delivery. Mail failures never fall back to logs. Hosted deployment forwards the selected mode to both initialization and the running Worker.0025_passwordless_sign_in.sqldeletes credential/password accounts and drops the old installation flag, preserving users, memberships and SSO accounts. Configure OTP delivery or working SSO before upgrading; pending bootstrap files must omitowner.password.Validation: workspace types/format/lint; 30 browser auth/management tests; 9 hosted provisioning tests; 101 integration tests; 15 local Cloudflare tests; browser setup, OTP, DNS verification, company SSO, recovery and invitation/organization flows; Node and Cloudflare builds. Tests use local services and synthetic identities.
Operator documentation is maintained separately in #58 and must remain unpublished until a release includes this behavior. No deployment is included in this PR.


Confidence Score: 5/5
The PR appears safe to merge; the hosted sign-in configuration mismatch is fixed.Summary
This PR replaces operator passwords with one-time sign-in codes and builds authentication without first loading organization settings.
No new actionable issues were found in the changes since the previous review. This review checked code and test changes; it did not run the tests.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR A["Deployment configuration"] --> B["LOGIN_CODE_DELIVERY"] B --> C["Hosted initialization"] B --> D["Worker variables"] D --> E["One-time sign-in codes"] E --> F["Email"] E --> G["Server log when explicitly selected"]Reviews (2) · Last reviewed commit: "Preserve hosted sign-in delivery and exe..." · Reviewed by Greptile