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