Solution to GitHub CLI 'GraphQL error: Resource protected by organization SAML enforcement. You must grant your OAuth token access to this organization.'

Ran a gh clone today and got this:

GraphQL error: Resource protected by organization SAML enforcement. You must grant your OAuth token access to this organization.

Fixed it by running:

gh auth refresh