Exception: AtprotoAuth::InvalidClientMetadata

Inherits:
OAuthError show all
Defined in:
lib/atproto_auth/errors.rb

Overview

Error raised when client metadata is invalid or cannot be retrieved. This can occur during client metadata fetching, parsing, or validation.

Examples:

Handling client metadata errors

begin
  client = AtprotoAuth::Client.new(client_id: "https://myapp.com/metadata.json")
rescue AtprotoAuth::InvalidClientMetadata => e
  puts "Failed to validate client metadata: #{e.message}"
end

Instance Attribute Summary

Attributes inherited from OAuthError

#error_code

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ InvalidClientMetadata

Returns a new instance of InvalidClientMetadata.



27
28
29
# File 'lib/atproto_auth/errors.rb', line 27

def initialize(message)
  super(message, "invalid_client_metadata")
end