mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-15 00:07:28 +00:00
Tree: Update to cleanup globals
Use the module singleton pattern to share global state. This can also be a modified version of the Global Object Pattern. The main reason this pattern is used is for ease of use when handling global state rather than adding extra dependencies for a DI parameter. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
@@ -32,6 +32,7 @@ class AuthKeys(BaseModel):
|
||||
return False
|
||||
|
||||
|
||||
# Global auth constants
|
||||
AUTH_KEYS: Optional[AuthKeys] = None
|
||||
DISABLE_AUTH: bool = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user