Skip to content

Commit

Permalink
Merge pull request #63 from mystery-man/master
Browse files Browse the repository at this point in the history
Fixed CSRF issue
  • Loading branch information
ArkeologeN committed Apr 5, 2016
2 parents d2f91c9 + e2d5683 commit 5ea438f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/auth.js
Expand Up @@ -36,11 +36,12 @@
res = null;
}

state = encodeURIComponent(state || newState());
state = state || newState();
redirectURI = redirectURI || args.callback;
states[state] = {
redirectURI: redirectURI,
};
state = encodeURIComponent(state);

var url = util.format("https://www.linkedin.com/uas/oauth2/authorization?response_type=code" +
"&client_id=%s" +
Expand Down

0 comments on commit 5ea438f

Please sign in to comment.