sprite authentication issue

I can’t login using my fly.io account, neither by the sprite.dev onboarding terminal command (after generating an API key) nor by sprites login command (and approving on fly.io).

Keeping to see:

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 dad52af4-{REDACTED}: missing third-party discharge token”}

Can you run sprite keyring (may need sprite upgrade) and see what tokens it knows about?

The command from onboarding runs sprite auth setup --token “…”, which registers a “Manual” token in that keyring view.

sprite login tries to go through the Fly.io auth flow. It has a bunch of edge case.

Also what operating system are you on? It’s quite possible the keyring isn’t doing what it should be.

sprite keyring showed 2 items. i tried to delete them hoping they would get recreated or something, but they just remain empty after another sprite login attempt

i went to sprites.dev again and deleted all api keys, and created a new one and ran

sprite auth setup --token "{REDACTED}/40378/{REDACTED}"
✓ Set up authentication for {REDACTED}
sprite create asd
Authentication required...
Error: authentication failed: 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 {REDACTED}: missing third-party discharge token"}

so, didn’t work again :frowning:

but keyring now shows

sprite keyring
Org tokens
          

  https://api.sprites.dev
  → {REDACTED}
      ****b05277

OS is MacOS 26.1

We shipped a fix that might have been the cause of this. Would you mind running sprite upgrade –channel dev and see if things behave?

0.0.1-dev-6024204 is installed after switching to dev channel

Exact same error. Tried removing keyring, removing API tokens on dashboard, login via fly.io website, login via –token; nothing is working, its always the same error coming up

Well that’s annoying. Go ahead and run sprite list –debug, then feel free to send the output to support@fly.io.

If you wouldn’t mind, send the contents of your ~/.sprites directory too. There shouldn’t be anything sensitive in there.

After that, try deleting your entire ~/.sprites directory and running that sprite auth setup –token <t> command again.

I’ve send it over. I’ve also pinged you in slack in case you find chat interaction more helpful to resolve this.

After deleting ~/.sprite folder

user@M1 ~ % sprite auth setup --token "{REDACTED}/40378/{REDACTED}/{REDACTED}"
✓ Set up authentication for {REDACTED}
user@M1 ~ % sprite create asd
Authentication required...
Error: authentication failed: no authentication found. Please run 'sprite login' first

tried upgrade to another new version `0.0.1-dev-7e53969`, still same errors with any auth method (token vs login)

Tried today again with `(0.0.1-dev-7e53969 → 0.0.1-dev-372cbe2)` upgrade. Still same error @kurt

Okay, giving up. Updated again and tried, same result.

I’m disappointed to see the bug not being addressed and I’m just locked out of using the product.