gh auth status
gh auth status [flags]
Verifies and displays information about your authentication state.
This command will test your authentication state for each GitHub host that gh knows about and report on any issues.
Options
-h,--hostname <string>- Check a specific hostname's auth status
-t,--show-token- Display the auth token

