original_docstring: 
      Authentication decorator for GET /interactive endpoints
      
docstring: Authentication decorator for GET /interactive endpoints
docstring_tokens: Authentication decorator for GET / interactive endpoints
code: def authenticate_session(content_type: str = "text/html") -> Callable:
      """
      Authentication decorator for GET /interactive endpoints
      """
  
      def decorator(view) -> Callable:
          def wrapper(request: Request, *args, **kwargs) -> Response:
              try:
                  authenticate_session_helper(request)
              except ValueError as e:
                  return render_error_response(
                      str(e), content_type=content_type, status_code=403
                  )
              else:
                  return view(request)
  
          return wrapper
  
      return decorator
code_tokens: def authenticate_session ( content_type : str = "text/html" ) -> Callable : def decorator ( view ) -> Callable : def wrapper ( request : Request , * args , ** kwargs ) -> Response : try : authenticate_session_helper ( request ) except ValueError as e : return render_error_response ( str ( e ) , content_type = content_type , status_code = 403 ) else : return view ( request ) return wrapper return decorator
short_docstring: Authentication decorator for GET /interactive endpoints
short_docstring_tokens: Authentication decorator for GET / interactive endpoints
comment: """
      Authentication decorator for GET /interactive endpoints
      """