Module: RapidApi::Auth::Concerns::AuthenticatedController

Extended by:
ActiveSupport::Concern
Includes:
JWTHelpers
Defined in:
lib/rapid_api/auth/concerns/authenticated_controller.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Methods included from JWTHelpers

#jwt_decode, #jwt_encode

Instance Method Details

#authorize!Object



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

def authorize!
  self.authorized = _authorize
  not_authorized! if authorized.nil?
end