You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used this module for a while and everything worked perfect but recently I started to get error when attempting to find the csrf_token in the _login() function.
I started to debug the issue and found that the regular expression used to find the csrf_token was:
var pattern = new RegExp(/(csrf_token\\":\\")[\w]+/);
But this is not matching the token anymore for no apparent reason.
I tried to tweak the regular expression and found that if I use one slash \ instead of \\ it's works and match the token:
var pattern = new RegExp(/(csrf_token\":\")[\w]+/);
I don't know if this problem only happens to me or not, and I don't understand why this started to happen all of a sudden.
Maybe the code could be updated for trying to match with \ and \\ slashed if the first one don't find the token.
The text was updated successfully, but these errors were encountered:
I used this module for a while and everything worked perfect but recently I started to get error when attempting to find the csrf_token in the _login() function.
I started to debug the issue and found that the regular expression used to find the csrf_token was:
var pattern = new RegExp(/(csrf_token\\":\\")[\w]+/);
But this is not matching the token anymore for no apparent reason.
I tried to tweak the regular expression and found that if I use one slash \ instead of \\ it's works and match the token:
var pattern = new RegExp(/(csrf_token\":\")[\w]+/);
I don't know if this problem only happens to me or not, and I don't understand why this started to happen all of a sudden.
Maybe the code could be updated for trying to match with \ and \\ slashed if the first one don't find the token.
The text was updated successfully, but these errors were encountered: