MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / refresh_token

Function refresh_token

atomic-cli/src/commands/token.rs:114–116  ·  view source on GitHub ↗

Mint a fresh token. Tokens are not cached, so this is identical to [`get_token`]; kept for call-site compatibility (e.g. retry-after-401).

(server: &str, identity: &Identity)

Source from the content-addressed store, hash-verified

112/// Mint a fresh token. Tokens are not cached, so this is identical to
113/// [`get_token`]; kept for call-site compatibility (e.g. retry-after-401).
114pub async fn refresh_token(server: &str, identity: &Identity) -> CliResult<String> {
115 mint_token(server, identity)
116}
117
118// ---------------------------------------------------------------------------
119// Minting

Callers

nothing calls this directly

Calls 1

mint_tokenFunction · 0.85

Tested by

no test coverage detected