Module: JWT::Algos::Unsupported

Defined in:
lib/jwt/algos/unsupported.rb

Constant Summary collapse

SUPPORTED =
Object.new.tap { |object| object.define_singleton_method(:include?) { |*| true } }

Class Method Summary collapse

Class Method Details

.signObject

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/jwt/algos/unsupported.rb', line 11

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

.verifyObject



7
8
9
# File 'lib/jwt/algos/unsupported.rb', line 7

def verify(*)
  raise JWT::VerificationError, 'Algorithm not supported'
end