pub async fn mint( user_id: Uuid, ttl: i64, token_type: TokenType, ) -> Result<TokenDetails, MintError>
Mints a token of token_type for user_id, signed with that user’s private key.
token_type
user_id