constructor({ clientId, dataPath, rmMaxRetries }={}) {
        super();

        const idRegex = /^[-_\w]+$/i;
        if(clientId && !idRegex.test(clientId)) {
            throw new Error('Invalid clientId. Only alphanumeric characters, underscores and hyphens are allowed.');
        }

        this.dataPath = path.resolve(dataPath || './.wwebjs_auth/');
        this.clientId = clientId;
        this.rmMaxRetries = rmMaxRetries ?? 4;
    }
Local directory-based authentication
@param {object} options - options
@param {string} options.clientId - Client id to distinguish instances if you are using multiple, otherwise keep null if you are using only one instance
@param {string} options.dataPath - Change the default path for saving session files, default is: "./.wwebjs_auth/" 
@param {number} options.rmMaxRetries - Sets the maximum number of retries for removing the session directory