Module: ParamsEncoding
- Defined in:
- lib/params_encoding.rb,
lib/params_encoding/version.rb
Defined Under Namespace
Classes: Error
Constant Summary collapse
- VERSION =
"0.1.2"
Class Method Summary collapse
Class Method Details
.decode(str) ⇒ Object
14 15 16 17 |
# File 'lib/params_encoding.rb', line 14 def self.decode(str) token = JWT.decode str, nil, false token end |
.encode(options) ⇒ Object
8 9 10 11 12 |
# File 'lib/params_encoding.rb', line 8 def self.encode() raise 'Type error, currently only hash supported!' unless .is_a?(Hash) token = JWT.encode , nil, 'none' token end |