Can create read only clients

This commit is contained in:
2025-01-27 22:57:09 +01:00
parent 9a46cbd819
commit b92149a77d
3 changed files with 33 additions and 2 deletions

View File

@ -49,6 +49,9 @@ pub struct APIClient {
/// Client last usage time
pub used: u64,
/// Read only access
pub readonly_client: bool,
}
impl APIClient {
@ -71,6 +74,7 @@ impl APIClient {
secret: rand_str(TOKEN_LEN),
created: curr_time().unwrap(),
used: curr_time().unwrap(),
readonly_client: true,
}
}
}