From 75f70aa263dff23a943a09445944ecfea52bfdee Mon Sep 17 00:00:00 2001 From: Chrislearn Young Date: Fri, 25 Oct 2024 15:29:36 +0800 Subject: [PATCH] update `JwtAuthState` doc --- crates/jwt-auth/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/jwt-auth/src/lib.rs b/crates/jwt-auth/src/lib.rs index fd295c988..fc6b12bff 100644 --- a/crates/jwt-auth/src/lib.rs +++ b/crates/jwt-auth/src/lib.rs @@ -202,11 +202,11 @@ pub enum JwtAuthError { /// JwtAuthState #[derive(Copy, Clone, Eq, PartialEq, Debug)] pub enum JwtAuthState { - /// Authorized. + /// Authorized. Used if decoding jwt token successfully. Authorized, - /// Unauthorized. + /// Unauthorized. Used if no jwt token is provided. Unauthorized, - /// Forbidden. + /// Forbidden. Used if decoding jwt token failed. Forbidden, } /// JwtAuthDepotExt