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
plugin.githubLogin=function(user,cb){consturls=config.sys.urls;constleetcodeUrl=urls.github_login;const_request=request.defaults({jar: true});_request(urls.github_login_request,function(e,resp,body){constauthenticityToken=body.match(/name="authenticity_token"value="(.*?)"/);// The problem is hereletgaId=body.match(/name="ga_id"value="(.*?)"/);if(!gaId){gaId='';}letrequiredField=body.match(/name="required_field_(.*?)"/);consttimestamp=body.match(/name="timestamp"value="(.*?)"/);consttimestampSecret=body.match(/name="timestamp_secret"value="(.*?)"/);
The text was updated successfully, but these errors were encountered:
@frenchleave1007 I meet the same problem and after digging around a few moments I figured out it's because I work under corporation's proxy and thus suffer from certification issue. You could first add the following 3 lines to get the error message:
If you get the first certificate problem like me then add the following line of code to the beginning of this file, reload vscode, it would works for sign in to leetcode:
process.env['NODE_TLS_REJECT_UNAUTHORIZED']=0
After sign in, you'd better set the enviroment variable back to 1 for security reason.
i cannot log in this
errorInfo
leetcode.vscode-leetcode-0.17.0\node_modules\vsc-leetcode-cli\lib\plugins\leetcode.js:589
const authenticityToken = body.match(/name="authenticity_token" value="(.*?)"/);
^
TypeError: Cannot read property 'match' of undefined
The text was updated successfully, but these errors were encountered: