Latch.Error.OAuth exception (latch v0.5.0)

Copy Markdown

The authorization server returned an OAuth error response.

The error field contains the RFC 6749 error code.

Common error values

  • "access_denied" - the user declined consent
  • "invalid_grant" - the code or refresh token is stale
  • "invalid_client" - client assertion rejected
  • "invalid_request" - malformed request to the server
  • "expired_token" - a DPoP nonce or token expired

Summary

Types

t()

@type t() :: %Latch.Error.OAuth{
  __exception__: term(),
  description: String.t() | nil,
  error: String.t(),
  error_uri: String.t() | nil
}