You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fly setup wizard: one GitHub device sign-in for enrollment, first administrator and dashboard login (not three) #3923
A Fly dashboard launch on the ProPR App path asks the user to complete GitHub's device sign-in three times, with the same account against the same App:
GitHub step (startDeviceSignIn / deviceSignInProgress in src/flyLaunch/connectRoutes.ts): device flow to enroll the relay token; the user token is used once and discarded.
Administrator step (startAdminDevice / adminDeviceProgress): a second device flow only to read the user's profile and check userCanAccessRelayInstallation.
Dashboard login after setup finishes: a third device flow for the browser session.
Reported by the maintainer during the 0.9.4 release-candidate test: "I had to do the device login like 3 times during the setup+login". It is the most tedious part of the launch, and it will show in the launch video.
Wanted: one sign-in
Use the GitHub step's device sign-in for all three purposes. While the wizard holds that user token in memory (as it already does while the user picks an installation), also:
read the profile and run the installation access check, and make that user the first administrator (admin, PROPR_ADMIN_USERS). The Administrator step becomes a confirmation ("You are @login; you will be the first administrator") with a "Use a different GitHub account" option that runs the existing admin device flow;
when setup finishes, sign the same browser in to the dashboard: issue the normal dashboard session for that admin to the browser that completed the wizard (it is already authenticated to the wizard by the setup code), so the user lands signed in.
The pasted-token fallback path should do the same where the token allows it (profile + access check); otherwise keep the separate admin sign-in there.
Keep the token guarantees from connectSetup.ts: never stored, logged or rendered; discarded when the wizard no longer needs it, at the latest when setup finishes or the step changes. The dashboard session must not embed the GitHub token beyond what the normal dashboard login stores.
Update the stepper (if the Administrator step folds into the GitHub step, the wizard has one step fewer), the setup-fly docs, and the tests: one device flow from launch to a signed-in dashboard; "use a different account" still works; the session is bound to the wizard browser only; expired/cancelled device flows; pasted-token path.
Acceptance
From a fresh launch, the user completes GitHub's device sign-in once and ends on the dashboard signed in as the first administrator.
Activity
propr-dev commentedon Nov 30, 2026
🤖 AI processing has started for this issue using codex agent with gpt-6.2-sol model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
codexgpt-6.2-sol3923/gpt-6.2-sol-fly-setup-wizard-one-gith-20261130-1333-e3p3758-epic-runtime-abstraction-sc0issue-3923-20261130-1333-gpt-6.2-sol-e3p🔍 Track Task Execution
integry commentedon Dec 1, 2026
Done in #3924, which merged into the runtime epic; the epic merged into
mainwith #3774 and ships in 0.9.4.