Changed sticky session from bool to Option<u64>

This commit is contained in:
Ara Sadoyan
2026-05-20 21:09:23 +02:00
parent 1727a2b5e7
commit 2f5def5c3c
6 changed files with 17 additions and 18 deletions

View File

@@ -179,7 +179,6 @@ impl AuthValidator for ApiKeyAuth<'_> {
impl AuthValidator for JwtAuth {
async fn validate(&self, session: &mut Session) -> bool {
if let Some(jwtsecret) = JWT_TOKEN.clone() {
// println!(" ===> {:?}", jwtsecret);
if let Some(tok) = get_query_param(session, "araleztoken") {
return check_jwt(tok.as_str(), jwtsecret.as_ref());
}