Cumulocity Web SDK - v1021.62.8
    Preparing search index...

    Interface IDeviceBootstrapOptions

    Interface to use as options parameter to bootstrap a new device.

    interface IDeviceBootstrapOptions {
        basicAuth?: { pass: string; user: string };
        basicAuthToken?: string;
    }
    Index

    Properties

    basicAuth?: { pass: string; user: string }

    Object to define username and password as string.

    Example


    const basicAuth = {
    user: 'username',
    pass: 'password'
    }
    basicAuthToken?: string

    If already logged in it is accessible via client.auth.getFetchOptions, see [[BasicAuth.getFetchOptions]]

    Example


    // tenant/username:password
    const basicAuthToken = 'Basic dGVuYW50L3VzZXJuYW1lOnBhc3N3b3Jk';