Sha256: 35d8a8ac7dba6ad935fe323d7213d8cd06654685a5536bcae1ce5fa20843c970

Contents?: true

Size: 210 Bytes

Versions: 26

Compression:

Stored size: 210 Bytes

Contents

# frozen_string_literal: true

module GraphqlDevise
  class AuthenticationError < ExecutionError
    def to_h
      super.merge(extensions: { code: ERROR_CODES.fetch(:authentication_error) })
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
graphql_devise-2.0.0 lib/graphql_devise/errors/authentication_error.rb
graphql_devise-1.4.0 lib/graphql_devise/errors/authentication_error.rb
graphql_devise-1.3.0 lib/graphql_devise/errors/authentication_error.rb
graphql_devise-1.2.0 lib/graphql_devise/errors/authentication_error.rb
graphql_devise-1.1.1 lib/graphql_devise/errors/authentication_error.rb
graphql_devise-1.1.0 lib/graphql_devise/errors/authentication_error.rb
graphql_devise-1.0.1 lib/graphql_devise/errors/authentication_error.rb
graphql_devise-1.0.0 lib/graphql_devise/errors/authentication_error.rb
graphql_devise-0.18.2 lib/graphql_devise/errors/authentication_error.rb
graphql_devise-0.18.1 lib/graphql_devise/errors/authentication_error.rb
graphql_devise-0.18.0 lib/graphql_devise/errors/authentication_error.rb
graphql_devise-0.17.1 lib/graphql_devise/errors/authentication_error.rb
graphql_devise-0.17.0 lib/graphql_devise/errors/authentication_error.rb
graphql_devise-0.16.0 lib/graphql_devise/errors/authentication_error.rb
graphql_devise-0.15.0 lib/graphql_devise/errors/authentication_error.rb
graphql_devise-0.14.3 lib/graphql_devise/errors/authentication_error.rb
graphql_devise-0.14.2 lib/graphql_devise/errors/authentication_error.rb
graphql_devise-0.14.1 lib/graphql_devise/errors/authentication_error.rb
graphql_devise-0.14.0 lib/graphql_devise/errors/authentication_error.rb
graphql_devise-0.13.6 lib/graphql_devise/errors/authentication_error.rb