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)
| 106 | /// subdomain. The token is keyed by the identity's own Ed25519 public key, so |
| 107 | /// no prior registration state needs to be on file locally to mint it. |
| 108 | pub async fn get_token(server: &str, identity: &Identity) -> CliResult<String> { |
| 109 | mint_token(server, identity) |
| 110 | } |
| 111 | |
| 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). |
no test coverage detected