async logout() {
        try {
            let options = Object.assign(this.defaultRequestOptions);
            options["url"] = "https://www.instagram.com/accounts/logout/";
            options["headers"]["X-CSRFToken"] = this.csrfToken;
            options["form"] = { csrfmiddlewaretoken: this.csrfToken };
            await this.fetchPage({ options, isPost: true, ignoreRedirection: true });
            fs.removeSync(this.cookieFile);
            return true;
        } catch (error) {
            throw new Error(error);
        }
    }
/**
     *
     * Logout of Instagram web instance
     * @memberof Fusia
     */
Logout of Instagram web instance
@memberof Fusia
Logout of Instagram web instance @memberof Fusia
async logout() {
        try {
            let options = Object.assign(this.defaultRequestOptions);
            options["url"] = "https://www.instagram.com/accounts/logout/";
            options["headers"]["X-CSRFToken"] = this.csrfToken;
            options["form"] = { csrfmiddlewaretoken: this.csrfToken };
            await this.fetchPage({ options, isPost: true, ignoreRedirection: true });
            fs.removeSync(this.cookieFile);
            return true;
        } catch (error) {
            throw new Error(error);
        }
    }
async logout ( ) { try { let options = Object . assign ( this . defaultRequestOptions ) ; options [ "url" ] = "https://www.instagram.com/accounts/logout/" ; options [ "headers" ] [ "X-CSRFToken" ] = this . csrfToken ; options [ "form" ] = { csrfmiddlewaretoken : this . csrfToken } ; await this . fetchPage ( { options , isPost : true , ignoreRedirection : true } ) ; fs . removeSync ( this . cookieFile ) ; return true ; } catch ( error ) { throw new Error ( error ) ; } }
Logout of Instagram web instance
 @memberof Fusia
Logout of Instagram web instance @memberof Fusia