Class: JWT::Encode

Inherits:
Object
  • Object
show all
Defined in:
app/services/morpho/jwt/encode.rb

Class Method Summary collapse

Class Method Details

.new(payload) ⇒ Object



3
4
5
6
7
8
9
# File 'app/services/morpho/jwt/encode.rb', line 3

def self.new(payload)
  begin
    Morpho::Cipher.jwt_encode(payload)
  rescue
    nil
  end
end