Class: Morpho::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



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

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