🔥 refactor(service.py): remove unused import and commented code in AuthManager class
This commit is contained in:
parent
31abe8d67e
commit
ac6d2ff8b4
1 changed files with 0 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue