pub fn resolve_token() -> Option<(SecretString, TokenSource)>Expand description
Resolves a GitHub token using the priority chain.
Checks sources in order:
GH_TOKENenvironment variableGITHUB_TOKENenvironment variable- GitHub CLI (
gh auth token) - System keyring (native aptu auth)
Returns the token and its source, or None if no token is found.