Skip to content

Auth

glib authenticates with GitHub using OAuth Device Flow so sign-in works cleanly from terminal UIs.

Default requested scope is repo to support private repository access.

glib resolves client ID in this order:

  1. GLIB_GITHUB_CLIENT_ID env override
  2. built-in release default
  • Token path: <user-config-dir>/glib/github_token
  • Token is reused on startup until invalid/expired/cleared.

SIGNED_OUT -> PENDING -> AUTHORIZED (or EXPIRED)

  • enter starts sign-in from PROJECTS mode.
  • l clears local token and returns to signed-out behavior.
SymptomLikely causeFix
Device flow expiresBrowser step not finished in timeRestart sign-in and complete quickly
Missing private reposScope/token mismatchRe-auth and verify repo scope
Polling errorsNetwork or API throttlingRetry auth and check connectivity