GitHub CLI has a new opt-in mode that gives you short-lived OAuth tokens and refreshes them for you. It is a public preview that starts with gh v2.103.0. It fixes an old complaint: gh OAuth tokens never expired. As a GitHub CLI issue thread put it, the OAuth token currently doesn't expire...