isClassicGitHubPat function

bool isClassicGitHubPat(
  1. String token
)

Whether token is a GitHub classic PAT (ghp_…). Official Copilot CLI docs (2026-09): classic PATs are NOT a supported Copilot credential type — the connect flow warns at paste time and re-asks.

Implementation

bool isClassicGitHubPat(String token) => token.startsWith('ghp_');