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)
| 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. |
| 115 | pub async fn get_token(server: &str, identity: &Identity) -> AuthResult<String> { |
| 116 | mint_token(server, identity) |
| 117 | } |
| 118 | |
| 119 | // --------------------------------------------------------------------------- |
| 120 | // Minting |
no test coverage detected