mwbot-ts - v1.2.6
    Preparing search index...

    Type Alias Credentials

    Credentials: XOR<
        { oAuth2AccessToken: string },
        {
            accessSecret: string;
            accessToken: string;
            consumerSecret: string;
            consumerToken: string;
        },
        { password: string; username: string },
        { anonymous: true },
    >

    User credentials for authentication.

    When calling Mwbot.constructor, one of the following credential types must be provided under the credentials key in the MwbotInitOptions object.

    {
    oAuth2AccessToken: 'Your OAuth 2.0 access token'
    }
    {
    consumerToken: 'Your OAuth 1.0a consumer token',
    consumerSecret: 'Your OAuth 1.0a consumer secret',
    accessToken: 'Your OAuth 1.0a access token',
    accessSecret: 'Your OAuth 1.0a access secret'
    }
    {
    username: 'Your bot username',
    password: 'Your bot password'
    }
    {
    anonymous: true
    }

    NOTE: Anonymous users will be limited to non-write requests only.