class JWT::EncodedToken

def parse(segment)

def parse(segment)
  JWT::JSON.parse(segment)
rescue ::JSON::ParserError
  raise JWT::DecodeError, 'Invalid segment encoding'
end