Type alias UserApiKeyLink

UserApiKeyLink: {
    nonce: string;
    private_key?: string;
    public_key?: string;
    url: string;
}

Type declaration

  • nonce: string

    Uhe nonce generated. It can be used to verify and identify its source after decrypting the user api key.

  • Optional private_key?: string

    If you don't provide public_key then we generate it and return it here.

  • Optional public_key?: string

    If you don't provide public_key then we generate it and return it here.

  • url: string

    A link that allows the user to generate a User API key. The user should visit this link, explicitly agree to the authorization, and then copy the content it produces and provide it to api.decryptUserApiKey to obtain the User API key. Alternatively, if auth_redirect has the correct value, discourse will redirect to auth_redirect url after user authorization.

Generated using TypeDoc