Build fix
Rust Build / Check (pull_request) Successful in 1m14s
Rust Build / Rustfmt (pull_request) Successful in 28s
Rust Build / Test Suite (pull_request) Failing after 1m42s
Rust Build / Clippy (pull_request) Successful in 1m40s
Rust Build / build (pull_request) Successful in 2m7s
Rust Build / Check (pull_request) Successful in 1m14s
Rust Build / Rustfmt (pull_request) Successful in 28s
Rust Build / Test Suite (pull_request) Failing after 1m42s
Rust Build / Clippy (pull_request) Successful in 1m40s
Rust Build / build (pull_request) Successful in 2m7s
This commit is contained in:
@@ -24,7 +24,7 @@ pub fn create_token(
|
|||||||
message: String::from(MESSAGE),
|
message: String::from(MESSAGE),
|
||||||
issuer: String::from(ISSUER),
|
issuer: String::from(ISSUER),
|
||||||
audiences: vec![String::from(AUDIENCE)],
|
audiences: vec![String::from(AUDIENCE)],
|
||||||
id: *id,
|
user_id: *id,
|
||||||
};
|
};
|
||||||
textsender_models::token::create_token(provided_key, &resource, time::Duration::hours(4))
|
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),
|
message: String::from(SERVICE_SUBJECT),
|
||||||
issuer: String::from(ISSUER),
|
issuer: String::from(ISSUER),
|
||||||
audiences: vec![String::from(AUDIENCE)],
|
audiences: vec![String::from(AUDIENCE)],
|
||||||
id: *id,
|
user_id: *id,
|
||||||
};
|
};
|
||||||
textsender_models::token::create_token(provided, &resource, time::Duration::hours(1))
|
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),
|
message: String::from(SERVICE_SUBJECT),
|
||||||
issuer: String::from(ISSUER),
|
issuer: String::from(ISSUER),
|
||||||
audiences: vec![String::from(AUDIENCE)],
|
audiences: vec![String::from(AUDIENCE)],
|
||||||
id: *id,
|
user_id: *id,
|
||||||
};
|
};
|
||||||
textsender_models::token::create_token(key, &resource, time::Duration::hours(4))
|
textsender_models::token::create_token(key, &resource, time::Duration::hours(4))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user