add jwt context_token_key
@@ -22,6 +22,7 @@ where
C: DeserializeOwned + Sync + Send + 'static,
{
pub secret: String,
+ pub context_token_key: Option<String>,
pub context_data_key: Option<String>,
pub context_state_key: Option<String>,
pub response_error: bool,
@@ -130,6 +131,9 @@ where
res.forbidden();
}
}
+ if let Some(key) = &self.config.context_token_key {
+ depot.insert(key.clone(), token);
+ }
return;
}
}
