Exception: Supabase::Auth::Errors::AuthImplicitGrantRedirectError

Inherits:
CustomAuthError show all
Defined in:
lib/supabase/auth/errors.rb

Overview

Raised when an implicit grant redirect contains an error.

Instance Attribute Summary collapse

Attributes inherited from CustomAuthError

#name

Attributes inherited from AuthError

#code, #status

Instance Method Summary collapse

Constructor Details

#initialize(message, details: nil) ⇒ AuthImplicitGrantRedirectError

Returns a new instance of AuthImplicitGrantRedirectError.



70
71
72
73
# File 'lib/supabase/auth/errors.rb', line 70

def initialize(message, details: nil)
  super(message, name: "AuthImplicitGrantRedirectError", status: 500)
  @details = details
end

Instance Attribute Details

#detailsObject (readonly)

Returns the value of attribute details.



68
69
70
# File 'lib/supabase/auth/errors.rb', line 68

def details
  @details
end

Instance Method Details

#to_hObject



75
76
77
# File 'lib/supabase/auth/errors.rb', line 75

def to_h
  { name: @name, message: message, status: @status, code: @code, details: @details }
end