Sha256: 63b6fac1fa3e82b91f3ea97ba63d85b4f4a97d6c6addfb544358b8f472ea1e58
Contents?: true
Size: 377 Bytes
Versions: 1
Compression:
Stored size: 377 Bytes
Contents
require "params_encoding/version" require "base64" require "jwt" module ParamsEncoding class Error < StandardError; end def self.encode(options) raise 'Type error, currently only hash supported!' unless options.is_a?(Hash) token = JWT.encode options, nil, 'none' token end def self.decode(str) token = JWT.decode str, nil, false token end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
params_encoding-0.1.2 | lib/params_encoding.rb |