class JSON::JWT
def initialize(claims = {})
def initialize(claims = {}) @content_type = 'application/jwt' self.typ = :JWT self.alg = :none update claims unless claims.nil? [:exp, :nbf, :iat].each do |key| self[key] = self[key].to_i if self[key] end end end