Removed the secret_key attribute from the DigestAuth class. It is actually not used.

This commit is contained in:
依瑪貓 2022-12-06 23:13:45 +08:00
parent b348c872dc
commit 7ec56ee52d

View File

@ -41,9 +41,8 @@ class DigestAuth:
:param realm: The realm.
"""
self.secret_key: str = token_urlsafe(32)
self.serializer: URLSafeTimedSerializer \
= URLSafeTimedSerializer(self.secret_key)
= URLSafeTimedSerializer(token_urlsafe(32))
self.realm: str = "" if realm is None else realm
self.algorithm: t.Optional[str] = None
self.use_opaque: bool = True