cub auth status
cub auth status
Check whether the current session is authenticated
Synopsis
Check whether the current session is authenticated.
Unlike 'cub context get', this command contacts the server to verify that the access token is still valid. It loads the token for the active context, checks its expiration locally, and then calls the server's /me endpoint to confirm the token is accepted.
If the session is not authenticated or the token has expired, the command exits with a non-zero status and prints instructions to run 'cub auth login'. Re-authentication requires an interactive browser sign-in, so an agent cannot complete it on the user's behalf and must ask the user to run 'cub auth login'.
Examples:
# Check authentication status against the server in the active context
cub auth status
cub auth status [flags]
Options
-h, --help help for status
Options inherited from parent commands
--context string The context to use for this command
--debug Debug output
SEE ALSO
- cub auth - Authentication commands