I’m attempting to login with the sprite CLI using:
sprite login or sprite login -o my-org
This logs me in successfully but with:
● Opening browser for login…
✓ Logged in as me@my-domain.tld
Error: failed to fetch Fly.io organizations: API returned status 401: {“error”:“verify: invalid token: all tokens missing third-party discharge tokens; no verified tokens; token b385f53a-0187-54cf-83dc-0d9ff467d6cb: missing third-party discharge token”}
Additionally, within the browser during this flow, I get a toast “Organization not found” and I can see in the Network tab of the dev tools a request made to https://fly.io/dashboard/my-personal-org/billing.
A bit of backstory here:
When I signed up for an account in order to join my-org, Fly.io automatically created a personal organization my-personal-org and designated that as my default.
When I originally tried creating a sprite with the sprite CLI with the -o my-org flag, I was getting an error message about my-org “not found in your Fly.io account”. Without the -o my-org flag, I was getting an error message about lacking billing details, implying that it was trying to use my personal org where I’ve never added billing details.
So since I had no need for my-personal-org, I deleted my personal organization hoping this would resolve the confusion. But now I get the experience described above.
A bit of theorizing - it feels like the -o flag isn’t getting fully respected during login and something might still be looking at my-personal-org and noticing that I don’t have billing set up there, despite the fact I’ve deleted it.