module ParamsEncoding

Constants

VERSION

Public Class Methods

decode(str) click to toggle source
# File lib/params_encoding.rb, line 14
def self.decode(str)
  token = JWT.decode str, nil, false
  token
end
encode(options) click to toggle source
# File lib/params_encoding.rb, line 8
def self.encode(options)
  raise 'Type error, currently only hash supported!' unless options.is_a?(Hash)
  token = JWT.encode options, nil, 'none'
  token
end