debian-mirror-gitlab/debian/gems-compat/jwt-2.1.0/lib/jwt/algos/unsupported.rb
2019-03-15 21:16:06 +05:30

16 lines
378 B
Ruby

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