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

Function get_token

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

Mint a fresh, short-lived self-signed EdDSA JWT for `identity` against `server`. `server` is the bare server URL (e.g. `https://atomic.storage`), NOT an org subdomain. The token is keyed by the identity's own Ed25519 public key, so no prior registration state needs to be on file locally to mint it.

(server: &str, identity: &Identity)

Source from the content-addressed store, hash-verified

113/// subdomain. The token is keyed by the identity's own Ed25519 public key, so
114/// no prior registration state needs to be on file locally to mint it.
115pub async fn get_token(server: &str, identity: &Identity) -> AuthResult<String> {
116 mint_token(server, identity)
117}
118
119// ---------------------------------------------------------------------------
120// Minting

Callers 4

build_apex_clientFunction · 0.85
build_apex_client_asFunction · 0.85
build_client_with_orgFunction · 0.85
attach_identityFunction · 0.85

Calls 1

mint_tokenFunction · 0.85

Tested by

no test coverage detected