Trait salvo_extra::jwt_auth::JwtAuthDepotExt [−][src]
pub trait JwtAuthDepotExt {
fn jwt_auth_token(&self) -> Option<&String>;
fn jwt_auth_claims<C>(&self) -> Option<&C>
where
C: DeserializeOwned + Sync + Send + 'static;
fn jwt_auth_state(&self) -> JwtAuthState;
}
Expand description
JwtAuthDepotExt
Required methods
fn jwt_auth_token(&self) -> Option<&String>
fn jwt_auth_token(&self) -> Option<&String>
get jwt auth token reference from depot.
fn jwt_auth_claims<C>(&self) -> Option<&C> where
C: DeserializeOwned + Sync + Send + 'static,
fn jwt_auth_claims<C>(&self) -> Option<&C> where
C: DeserializeOwned + Sync + Send + 'static,
get jwt auth claims from depot.
fn jwt_auth_state(&self) -> JwtAuthState
fn jwt_auth_state(&self) -> JwtAuthState
get jwt auth state from depot.