Skip to content

Commit

Permalink
Merge pull request #1 from Thibaultfq/Thibaultfq-sessionid-fix
Browse files Browse the repository at this point in the history
Fixing sessionid variable name as proposed in issue yatsenkolesh#40
  • Loading branch information
Thibaultfq authored Oct 21, 2018
2 parents e508baf + 2f9f274 commit 2656d11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ module.exports = class Instagram {
return fetch('https://www.instagram.com/accounts/login/ajax/', options).then(
t => {
this.updateEssentialValues(t.headers._headers['set-cookie'])
return this.essentialsValues.sessionId;
return this.essentialValues.sessionid;
}).catch(() =>
console.log('Instagram authentication failed (challenge required erro)')
)
Expand Down

0 comments on commit 2656d11

Please sign in to comment.