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

Function audience

atomic-remote/src/auth/token.rs:204–206  ·  view source on GitHub ↗

The `aud` for a server URL: scheme and host (and port), no trailing slash, lowercased — so `https://Atomic.Storage/` and `https://atomic.storage` are the same audience.

(server: &str)

Source from the content-addressed store, hash-verified

202/// slash, lowercased — so `https://Atomic.Storage/` and
203/// `https://atomic.storage` are the same audience.
204pub fn audience(server: &str) -> String {
205 server.trim().trim_end_matches('/').to_ascii_lowercase()
206}
207
208#[cfg(test)]
209mod tests {

Callers 3

mint_tokenFunction · 0.85

Calls

no outgoing calls