Skip to main content

REFRESH_GRANT_ERRORS

@forge/monorepo


@forge/monorepo / backend/src / REFRESH_GRANT_ERRORS

Variable: REFRESH_GRANT_ERRORS

const REFRESH_GRANT_ERRORS: readonly ["invalid_grant", "invalid_client", "unauthorized_client", "access_denied"]

Defined in: backend/src/tools/credentials.ts:401

A refresh that failed because the grant is gone, rather than because the network was.

The distinction is the whole of AC-3, and it is not cosmetic: invalid_grant means a person must consent again and no amount of retrying will help, while a timeout means try again in a second. A runtime that conflates them either retries a dead grant forever or asks a user to re-authorise because of a blip.