This commit is contained in:
Imbus 2023-11-14 14:02:42 +01:00
parent 82909092d5
commit ddf138ab99
2 changed files with 2 additions and 3 deletions

View file

@ -24,8 +24,8 @@ pub fn token_factory(user: &str) -> JwtResult<String> {
&Header::default(),
&Claims {
sub: user.to_string(),
iss: "localhost".to_string(),
aud: "localhost".to_string(),
iss: "frostbyte".to_string(),
aud: "frostbyte".to_string(),
iat: chrono::Utc::now().timestamp() as usize,
exp: (chrono::Utc::now() + chrono::Duration::days(DAYS_VALID)).timestamp() as usize,
},

View file

@ -1,4 +1,3 @@
// #![allow(unused_imports, dead_code, unused_variables, unused_mut)]
use actix_files::Files;
use actix_web::middleware;
use actix_web::web::Data;