🔥 refactor(service.py): remove unused import and commented code in AuthManager class

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-08-28 17:55:21 -03:00
commit ac6d2ff8b4

View file

@ -1,4 +1,3 @@
from fastapi import Request
from langflow.services.base import Service
from typing import TYPE_CHECKING
@ -11,8 +10,3 @@ class AuthManager(Service):
def __init__(self, settings_manager: "SettingsManager"):
self.settings_manager = settings_manager
# We need to define a function that can be passed to the Depends() function.
# This function will be called by FastAPI to run oauth2_scheme
def run_oauth2_scheme(self, request: Request):
return self.settings_manager.auth_settings.oauth2_scheme(request=request)