aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-08-27 22:18:03 +0100
committerGravatar Chris Lovering <[email protected]>2024-08-27 22:18:03 +0100
commit71e94d1c37cf43c86522d4665da5d86a779550fd (patch)
treef4ecd87a37e7b82da83cd95c39edbc2fe45d4e3b
parentInstall argon2 (diff)
Remove unused IntFlag
-rw-r--r--thallium-backend/src/auth.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/thallium-backend/src/auth.py b/thallium-backend/src/auth.py
index 56987a8..6a92a5c 100644
--- a/thallium-backend/src/auth.py
+++ b/thallium-backend/src/auth.py
@@ -1,7 +1,6 @@
import logging
import typing as t
from datetime import UTC, datetime, timedelta
-from enum import IntFlag
from uuid import uuid4
import jwt
@@ -17,13 +16,6 @@ from src.settings import CONFIG, DBSession
log = logging.getLogger(__name__)
-class UserTypes(IntFlag):
- """All types of users."""
-
- VOUCHER_USER = 2**0
- REGULAR_USER = 2**1
-
-
class TokenAuth(HTTPBearer):
"""Ensure all requests with this auth enabled include an auth header with the expected token."""