summaryrefslogtreecommitdiffstats
path: root/src/auth/error.rs
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-04-13 17:37:08 -0500
committerToby Vincent <tobyv@tobyvin.dev>2024-04-13 17:37:08 -0500
commit49266fab5d12a63ea51708941ac15c286dfc4141 (patch)
treef61de885004d5658739db60fd8a374e7a216f03e /src/auth/error.rs
parentfecfd74eb29a5e1ddafab48d393c022dfcac3815 (diff)
fix(api,auth): improve token validation and errors
Diffstat (limited to 'src/auth/error.rs')
-rw-r--r--src/auth/error.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/auth/error.rs b/src/auth/error.rs
index 17cf6d1..8b1bb4c 100644
--- a/src/auth/error.rs
+++ b/src/auth/error.rs
@@ -33,6 +33,9 @@ pub enum Error {
#[error("Authorization token not found")]
JwtNotFound,
+ #[error("Token found was invalid type")]
+ InvalidTokenType,
+
#[error("The user belonging to this token no longer exists")]
UserNotFound,
}