Sha256: 58d3e27f044bfc2be167c112e26ed5cb517a5b0c1a306ec26ec983681feb8feb
Contents?: true
Size: 336 Bytes
Versions: 2
Compression:
Stored size: 336 Bytes
Contents
# frozen_string_literal: true require 'json' module JWT # JSON fallback implementation or ruby 1.8.x module Json def decode_json(encoded) JSON.parse(encoded) rescue JSON::ParserError raise JWT::DecodeError, 'Invalid segment encoding' end def encode_json(raw) JSON.generate(raw) end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
second_step-0.1.2 | secondstep-notify-1.0.0-osx/lib/ruby/lib/ruby/gems/2.2.0/gems/jwt-1.5.6/lib/jwt/json.rb |
jwt-1.5.6 | lib/jwt/json.rb |