From 2db6042b18bddbb2481b60a4f3e1ade5ff0d7dc0 Mon Sep 17 00:00:00 2001 From: soulaimane2 Date: Sun, 28 Aug 2022 01:39:51 +0100 Subject: [PATCH] the set _sharedData in line 48 to false in lib/index.js which was causing 'Cannot read property 'split' of undefined' error --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 9060571..200bb56 100644 --- a/lib/index.js +++ b/lib/index.js @@ -45,7 +45,7 @@ class Instagram { this.request = request.defaults(requestOptions) } - async login({ username, password } = {}, { _sharedData = true } = {}) { + async login({ username, password } = {}, { _sharedData = false } = {}) { username = username || this.credentials.username password = password || this.credentials.password