MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / _InvalidGrantError

Class _InvalidGrantError

python/openshell/sandbox.py:921–929  ·  view source on GitHub ↗

Refresh failed with OAuth2 `invalid_grant` (RFC 6749 §5.2). The refresh_token was rejected — expired, revoked, or rotated out by a concurrent refresh in another process. Subclass of `SandboxError` so an uncaught instance still surfaces the standard re-authenticate hint; `current_acc

Source from the content-addressed store, hash-verified

919
920
921class _InvalidGrantError(SandboxError):
922 """Refresh failed with OAuth2 `invalid_grant` (RFC 6749 §5.2).
923
924 The refresh_token was rejected — expired, revoked, or rotated out by
925 a concurrent refresh in another process. Subclass of `SandboxError`
926 so an uncaught instance still surfaces the standard re-authenticate
927 hint; `current_access_token` catches it to retry once with a
928 peer-rotated bundle before giving up.
929 """
930
931
932class _OidcRefresher:

Callers 1

_refreshMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected