You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All SDK errors inherit from `Auth0Error`. For most cases, catch `Auth0Error` to handle all errors uniformly. Only catch specific error types when you need to take different actions based on the error.
-**`Auth0Error`** (base): Catch this for general error handling
218
+
-**`MyAccountApiError`**: My Account API errors with `status`, `detail`, and optional `validation_errors`
219
+
-**`InvalidArgumentError`**: Invalid parameter value
220
+
-**`MissingRequiredArgumentError`**: Required parameter not provided
221
+
172
222
## A note about scopes
173
223
174
224
If multiple pieces of Connected Account functionality are intended to be used, it is recommended that you set the default `scope` for the My Account audience when creating you `ServerClient`. This will avoid multiple token requests as without it a new token will be requested for each scope used. This can be done by configuring the `scope` dictionary in the `authorization_params` when configuring the SDK. Each value in the dictionary corresponds to an `audience` and sets the `default` requested scopes for that audience.
0 commit comments