feat: auth error handling
This commit is contained in:
1 parent
6a2c1600f5
commit
a2e74c59b9
4 files changed
+31
-15
No files matched your search
@@ -6,7 +6,11 @@ class MESSAGES(str, Enum):
|
||||
|
||||
|
||||
class ERROR_MESSAGES(str, Enum):
|
||||
def __str__(self) -> str:
|
||||
return super().__str__()
|
||||
|
||||
DEFAULT = lambda err="": f"Something went wrong :/\n{err if err else ''}"
|
||||
ENV_VAR_NOT_FOUND = "Essential environment variable not found. Terminating now."
|
||||
INVALID_TOKEN = (
|
||||
"Your session has expired or the token is invalid. Please sign in again."
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user