diff options
author | 2024-08-27 22:18:03 +0100 | |
---|---|---|
committer | 2024-08-27 22:18:03 +0100 | |
commit | 71e94d1c37cf43c86522d4665da5d86a779550fd (patch) | |
tree | f4ecd87a37e7b82da83cd95c39edbc2fe45d4e3b | |
parent | Install argon2 (diff) |
Remove unused IntFlag
-rw-r--r-- | thallium-backend/src/auth.py | 8 |
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.""" |