Module: RapidApi::Auth::Concerns::JWTHelpers::ClassMethods

Defined in:
lib/rapid_api/auth/concerns/jwt_helpers.rb

Instance Method Summary collapse

Instance Method Details

#jwt_decode(token) ⇒ Object



25
26
27
# File 'lib/rapid_api/auth/concerns/jwt_helpers.rb', line 25

def jwt_decode(token)
  Support::JWT.decode(token)
end

#jwt_encode(payload) ⇒ Object



21
22
23
# File 'lib/rapid_api/auth/concerns/jwt_helpers.rb', line 21

def jwt_encode(payload)
  Support::JWT.encode(payload)
end