fly auth login not working

fly auth login
Opening https://fly.io/app/auth/cli/#### ...

Waiting for session... Done
successfully logged in as zwh***hcox@gmail.com
❯ fly auth whoami
Error: failed retrieving current user: You must be authenticated to view this.
❯ fly auth token
fm2_lJPECAAAAAAAA*****
❯ fly apps ls
Error: You must be authenticated to view this.
❯ which fly
/Users/zwhitchcox/.fly/bin/fly
❯ fly auth whoami -t $(fly auth token)
Error: failed retrieving current user: You must be authenticated to view this.

So, as you can see above, I authenticate, but then it says I must be authenticated.

It has the token.

Why is this not working?

Figured it out…I had an environment variable set (FLY_API_TOKEN), which was invalid. This takes precedence over the fly auth login token (wherever that gets stored)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.