Skip to main content

mint_api_key

Function mint_api_key 

Source
pub async fn mint_api_key<H>(
    http: &H,
    oauth_access_token: &str,
) -> Result<MintedKey, MuseAuthError>
where H: MuseHttp,
Expand description

Exchange the Meta OAuth access token for a Model API key. The OAuth token is sent only to the pinned mint URL. Callers must never log it.