From 01eab47abbcd33b233bbc833e1e7d50bc5827dbc Mon Sep 17 00:00:00 2001 From: Vignesh-02 Date: Fri, 19 Aug 2022 02:16:11 +0400 Subject: [PATCH] set _sharedData in line 49 to false in lib/index.js which was causing reading undefined property --- 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