feat: refresh keysets (#974)

* feat: refresh keysets

* feat: rename get_mint_info to fetch_mint_info
This commit is contained in:
thesimplekid
2025-08-19 19:19:08 +01:00
committed by GitHub
parent 86d51ed54d
commit 5c5075af71
15 changed files with 33 additions and 55 deletions

View File

@@ -49,7 +49,7 @@ pub async fn cat_device_login(
};
let mint_info = wallet
.get_mint_info()
.fetch_mint_info()
.await?
.ok_or(anyhow!("Mint info not found"))?;

View File

@@ -51,7 +51,7 @@ pub async fn cat_login(
};
let mint_info = wallet
.get_mint_info()
.fetch_mint_info()
.await?
.ok_or(anyhow!("Mint info not found"))?;

View File

@@ -47,7 +47,7 @@ pub async fn mint_blind_auth(
}
};
wallet.get_mint_info().await?;
wallet.fetch_mint_info().await?;
// Try to get the token from the provided argument or from the stored file
let cat = match &sub_command_args.cat {
@@ -83,7 +83,7 @@ pub async fn mint_blind_auth(
println!("Attempting to refresh the access token...");
// Get the mint info to access OIDC configuration
if let Some(mint_info) = wallet.get_mint_info().await? {
if let Some(mint_info) = wallet.fetch_mint_info().await? {
match refresh_access_token(&mint_info, &token_data.refresh_token).await {
Ok((new_access_token, new_refresh_token)) => {
println!("Successfully refreshed access token");
@@ -137,7 +137,7 @@ pub async fn mint_blind_auth(
Some(amount) => amount,
None => {
let mint_info = wallet
.get_mint_info()
.fetch_mint_info()
.await?
.ok_or(anyhow!("Unknown mint info"))?;
mint_info