error key. They will also contain a state key if any state was provided by the client during the request.
JSON
Errors during the authorization flow
If an error is encountered during the authorization phase of the OAuth flow, the user agent will be sent to the appropriate redirect URI with anerror query parameter (as well as a state query parameter if state was provided). The value of the error query parameter will be one of the available error codes.
Errors during token exchange
If an error is encountered during the token exchange phase, it will be presented as an object in the request response, as seen below. The value of theerror key will be one of the available error codes.