Sha256: d29f1c5bc6031666c9b8b607b9f2e2c3d005229d1820b3fc12087154ebeb1dae
Contents?: true
Size: 845 Bytes
Versions: 2
Compression:
Stored size: 845 Bytes
Contents
# frozen_string_literal: true module JWT module JWA module Compat module ClassMethods def from_algorithm(algorithm) new(algorithm) end def sign(algorithm, msg, key) Deprecations.warning('Support for calling sign with positional arguments will be removed in future ruby-jwt versions') from_algorithm(algorithm).sign(data: msg, signing_key: key) end def verify(algorithm, key, signing_input, signature) Deprecations.warning('Support for calling verify with positional arguments will be removed in future ruby-jwt versions') from_algorithm(algorithm).verify(data: signing_input, signature: signature, verification_key: key) end end def self.included(klass) klass.extend(ClassMethods) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jwt-2.9.3 | lib/jwt/jwa/compat.rb |
jwt-2.9.2 | lib/jwt/jwa/compat.rb |