code: def auth_required(self, view_func):
          
          @wraps(view_func)
          def wrapped_view_func(*args, **kwargs):
              if current_app.config['HAWK_ENABLED']:
                  if current_app.config['HAWK_ALLOW_COOKIE_AUTH'] and session:
                      self._auth_by_cookie()
                  else:
                      self._auth_by_signature()
              return view_func(*args, **kwargs)
  
          return wrapped_view_func
docs: Decorator that provides an access to view function for
          authenticated users only.
  
          Note that we don't run authentication when `HAWK_ENABLED` is `False`.