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

Extended by:
ActiveSupport::Concern
Included in:
AuthenticatedController, SessionsController
Defined in:
lib/rapid_api/auth/concerns/jwt_helpers.rb

Instance Method Summary collapse

Instance Method Details

#jwt_decode(token) ⇒ Object



16
17
18
# File 'lib/rapid_api/auth/concerns/jwt_helpers.rb', line 16

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

#jwt_encode(payload) ⇒ Object



12
13
14
# File 'lib/rapid_api/auth/concerns/jwt_helpers.rb', line 12

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