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

Function refresh_token

atomic-cli/src/commands/token.rs:75–77  ·  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

73/// Mint a fresh token. Tokens are not cached, so this is identical to
74/// [`get_token`]; kept for call-site compatibility (e.g. retry-after-401).
75pub async fn refresh_token(server: &str, identity: &Identity) -> CliResult<String> {
76 mint_token(server, identity)
77}
78
79// ---------------------------------------------------------------------------
80// Minting

Callers

nothing calls this directly

Calls 1

mint_tokenFunction · 0.85

Tested by

no test coverage detected