feat: add session po token cache

This commit is contained in:
ThetaDev 2025-02-05 15:55:32 +01:00
parent 29c854b20d
commit b72b501b6d
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
15 changed files with 234 additions and 61 deletions

View file

@ -70,6 +70,9 @@ struct Cli {
/// Disable Botguard
#[clap(long, global = true)]
no_botguard: bool,
/// Enable caching for session-bound PO tokens
#[clap(long, global = true)]
po_token_cache: bool,
}
#[derive(Parser)]
@ -913,6 +916,9 @@ async fn run() -> anyhow::Result<()> {
if cli.no_botguard {
rp = rp.no_botguard();
}
if cli.po_token_cache {
rp = rp.po_token_cache();
}
if cli.auth {
rp = rp.authenticated();
}