This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
|
||||
import secrets
|
||||
from functools import lru_cache
|
||||
from typing import Optional
|
||||
|
||||
from .types import TokenType
|
||||
|
||||
@@ -16,7 +15,7 @@ class BaseTokenManager:
|
||||
|
||||
@staticmethod
|
||||
@lru_cache(maxsize=1000)
|
||||
def _make_token_key(token_type: TokenType, identifier: str, token: Optional[str] = None) -> str:
|
||||
def _make_token_key(token_type: TokenType, identifier: str, token: str | None = None) -> str:
|
||||
"""
|
||||
Создает унифицированный ключ для токена с кэшированием
|
||||
|
||||
|
||||
Reference in New Issue
Block a user