From 7ec56ee52db003b40ad8f35d8b44cc8bdc872b15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Tue, 6 Dec 2022 23:13:45 +0800 Subject: [PATCH] Removed the secret_key attribute from the DigestAuth class. It is actually not used. --- src/flask_digest_auth/auth.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/flask_digest_auth/auth.py b/src/flask_digest_auth/auth.py index d21262c..9a1bd97 100644 --- a/src/flask_digest_auth/auth.py +++ b/src/flask_digest_auth/auth.py @@ -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