Sha256: 0fd6d8f50ca934e8a111291e7def2c7fe244768f7b2b1ed85c50092f3ea844e2

Contents?: true

Size: 378 Bytes

Versions: 5

Compression:

Stored size: 378 Bytes

Contents

module JWT
  module Algos
    module Unsupported
      module_function

      SUPPORTED = Object.new.tap { |object| object.define_singleton_method(:include?) { |*| true } }
      def verify(*)
        raise JWT::VerificationError, 'Algorithm not supported'
      end

      def sign(*)
        raise NotImplementedError, 'Unsupported signing method'
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jwt-2.2.2 lib/jwt/algos/unsupported.rb
jwt-2.2.1 lib/jwt/algos/unsupported.rb
jwt-2.2.0 lib/jwt/algos/unsupported.rb
jwt-2.2.0.pre.beta.0 lib/jwt/algos/unsupported.rb
jwt-2.1.0 lib/jwt/algos/unsupported.rb