app/errors/oauth2_error.rb
def as_json(*opts)
    {
      error: error_code,
      error_description: description
    }.as_json(*opts)
  end
# Fatal Errors (no redirect)
Fatal Errors (no redirect)
Fatal Errors ( no redirect )
def as_json(*opts)
    {
      error: error_code,
      error_description: description
    }.as_json(*opts)
  end
def as_json ( * opts ) { error : error_code , error_description : description } . as_json ( * opts ) end
Fatal Errors (no redirect)
Fatal Errors ( no redirect )
opts