Does `flyctl auth token` only return valid (non-expired) tokens?

Our app deploys to multiple different services. We want to run a command at the beginning of our deploy process that fails if the user is not authenticated in flyctl.

I can run flyctl auth token which exits the build if the user isn’t logged in.

One question though, is it possible that this command succeeds and returns a token that is expired if the user has logged in a long time ago? Or will it only ever return valid, non-expired tokens?


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