pub fn mint_token() -> Result<String, String>Expand description
Mints a bearer token.
openssl rand, not a crate: this workspace adds dependencies
reluctantly, already requires openssl for every other secret it
handles, and a randomness crate pulled in for one call site is a
supply-chain edge bought for nothing. A failure here is fatal rather
than fallen back on — there is no second source of randomness worth
having, and a predictable token is worse than no node.
§Errors
Returns a description when openssl is missing or fails.