Sha256: 4437ccdfbd67f38075f31a317e0b77d6bd3dcef667d3ad3a16ae530f0e60866e
Contents?: true
Size: 326 Bytes
Versions: 2
Compression:
Stored size: 326 Bytes
Contents
module JSON class JWK::Set < Array def initialize(*jwks) replace Array(jwks).flatten end def content_type 'application/jwk-set+json' end def as_json(options = {}) # NOTE: Array.new wrapper is requied to avoid CircularReferenceError { :keys => Array.new(self) } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
json-jwt-0.5.4 | lib/json/jwk/set.rb |
json-jwt-0.5.3 | lib/json/jwk/set.rb |