Skip to main content
Every SDK error inherits from MudraIDError. Token acquisition failures are SDK exceptions; responses from the protected resource remain requests.Response objects for your application to handle. Catch rate-limit and billing subclasses before a general MudraIDNetworkError handler. Do not infer that credentials were verified from an error status alone; an edge or earlier server check may have produced it.
A resource-server 401 does not make every operation safe to repeat. The SDK’s recovery depends on the HTTP method and an idempotency key that the server actually deduplicates. POST/PATCH without such a key are not blindly replayed. For an uncertain outcome, inspect server state before taking another action. An empty scope set requests no scopes; it does not mean all scopes. A token request refused for its resource/scopes requires a grant/configuration correction. See Configuration.