diff --git a/src/token_stuff/mod.rs b/src/token_stuff/mod.rs index 7eb3511..02ecccf 100644 --- a/src/token_stuff/mod.rs +++ b/src/token_stuff/mod.rs @@ -24,7 +24,7 @@ pub fn create_token( message: String::from(MESSAGE), issuer: String::from(ISSUER), audiences: vec![String::from(AUDIENCE)], - id: *id, + user_id: *id, }; textsender_models::token::create_token(provided_key, &resource, time::Duration::hours(4)) } @@ -37,7 +37,7 @@ pub fn create_service_token( message: String::from(SERVICE_SUBJECT), issuer: String::from(ISSUER), audiences: vec![String::from(AUDIENCE)], - id: *id, + user_id: *id, }; textsender_models::token::create_token(provided, &resource, time::Duration::hours(1)) } @@ -50,7 +50,7 @@ pub fn create_service_refresh_token( message: String::from(SERVICE_SUBJECT), issuer: String::from(ISSUER), audiences: vec![String::from(AUDIENCE)], - id: *id, + user_id: *id, }; textsender_models::token::create_token(key, &resource, time::Duration::hours(4)) }