{"action":"created","comment":{"url":"https://api.github.com/repos/expressjs/csurf/pulls/comments/39469466","id":39469466,"diff_hunk":"@@ -323,6 +323,63 @@ describe('csurf', function () {\n     })\n   })\n \n+  describe.only('req.verifyToken()', function () {\n+    var app, token, cookie;\n+    beforeEach(function(done) {\n+      app = connect()\n+      app.use(session({ keys: ['a', 'b'] }))\n+      app.use(bodyParser.urlencoded({ extended: false }))","path":"test/test.js","position":9,"original_position":9,"commit_id":"1223721cf1b9d6cc591ca14c9fb29dec1c7409d6","original_commit_id":"1223721cf1b9d6cc591ca14c9fb29dec1c7409d6","user":{"login":"dougwilson","id":67512,"avatar_url":"https://avatars.githubusercontent.com/u/67512?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwilson","html_url":"https://github.com/dougwilson","followers_url":"https://api.github.com/users/dougwilson/followers","following_url":"https://api.github.com/users/dougwilson/following{/other_user}","gists_url":"https://api.github.com/users/dougwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwilson/subscriptions","organizations_url":"https://api.github.com/users/dougwilson/orgs","repos_url":"https://api.github.com/users/dougwilson/repos","events_url":"https://api.github.com/users/dougwilson/events{/privacy}","received_events_url":"https://api.github.com/users/dougwilson/received_events","type":"User","site_admin":false},"body":"Does this test app need a body parser? I don't think I see any requests with a token in the body.","created_at":"2015-09-15T02:40:43Z","updated_at":"2015-09-15T02:40:43Z","html_url":"https://github.com/expressjs/csurf/pull/82#discussion_r39469466","pull_request_url":"https://api.github.com/repos/expressjs/csurf/pulls/82","_links":{"self":{"href":"https://api.github.com/repos/expressjs/csurf/pulls/comments/39469466"},"html":{"href":"https://github.com/expressjs/csurf/pull/82#discussion_r39469466"},"pull_request":{"href":"https://api.github.com/repos/expressjs/csurf/pulls/82"}}},"pull_request":{"url":"https://api.github.com/repos/expressjs/csurf/pulls/82","id":44983222,"html_url":"https://github.com/expressjs/csurf/pull/82","diff_url":"https://github.com/expressjs/csurf/pull/82.diff","patch_url":"https://github.com/expressjs/csurf/pull/82.patch","issue_url":"https://api.github.com/repos/expressjs/csurf/issues/82","number":82,"state":"open","locked":false,"title":"Exposed verify token. Fixes #43.","user":{"login":"YourDeveloperFriend","id":1808286,"avatar_url":"https://avatars.githubusercontent.com/u/1808286?v=3","gravatar_id":"","url":"https://api.github.com/users/YourDeveloperFriend","html_url":"https://github.com/YourDeveloperFriend","followers_url":"https://api.github.com/users/YourDeveloperFriend/followers","following_url":"https://api.github.com/users/YourDeveloperFriend/following{/other_user}","gists_url":"https://api.github.com/users/YourDeveloperFriend/gists{/gist_id}","starred_url":"https://api.github.com/users/YourDeveloperFriend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YourDeveloperFriend/subscriptions","organizations_url":"https://api.github.com/users/YourDeveloperFriend/orgs","repos_url":"https://api.github.com/users/YourDeveloperFriend/repos","events_url":"https://api.github.com/users/YourDeveloperFriend/events{/privacy}","received_events_url":"https://api.github.com/users/YourDeveloperFriend/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-14T21:26:30Z","updated_at":"2015-09-15T02:40:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1ac25e2257d990785cc87e09321a0204e2b9843","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/expressjs/csurf/pulls/82/commits","review_comments_url":"https://api.github.com/repos/expressjs/csurf/pulls/82/comments","review_comment_url":"https://api.github.com/repos/expressjs/csurf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/expressjs/csurf/issues/82/comments","statuses_url":"https://api.github.com/repos/expressjs/csurf/statuses/1223721cf1b9d6cc591ca14c9fb29dec1c7409d6","head":{"label":"YourDeveloperFriend:master","ref":"master","sha":"1223721cf1b9d6cc591ca14c9fb29dec1c7409d6","user":{"login":"YourDeveloperFriend","id":1808286,"avatar_url":"https://avatars.githubusercontent.com/u/1808286?v=3","gravatar_id":"","url":"https://api.github.com/users/YourDeveloperFriend","html_url":"https://github.com/YourDeveloperFriend","followers_url":"https://api.github.com/users/YourDeveloperFriend/followers","following_url":"https://api.github.com/users/YourDeveloperFriend/following{/other_user}","gists_url":"https://api.github.com/users/YourDeveloperFriend/gists{/gist_id}","starred_url":"https://api.github.com/users/YourDeveloperFriend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YourDeveloperFriend/subscriptions","organizations_url":"https://api.github.com/users/YourDeveloperFriend/orgs","repos_url":"https://api.github.com/users/YourDeveloperFriend/repos","events_url":"https://api.github.com/users/YourDeveloperFriend/events{/privacy}","received_events_url":"https://api.github.com/users/YourDeveloperFriend/received_events","type":"User","site_admin":false},"repo":{"id":42477831,"name":"csurf","full_name":"YourDeveloperFriend/csurf","owner":{"login":"YourDeveloperFriend","id":1808286,"avatar_url":"https://avatars.githubusercontent.com/u/1808286?v=3","gravatar_id":"","url":"https://api.github.com/users/YourDeveloperFriend","html_url":"https://github.com/YourDeveloperFriend","followers_url":"https://api.github.com/users/YourDeveloperFriend/followers","following_url":"https://api.github.com/users/YourDeveloperFriend/following{/other_user}","gists_url":"https://api.github.com/users/YourDeveloperFriend/gists{/gist_id}","starred_url":"https://api.github.com/users/YourDeveloperFriend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YourDeveloperFriend/subscriptions","organizations_url":"https://api.github.com/users/YourDeveloperFriend/orgs","repos_url":"https://api.github.com/users/YourDeveloperFriend/repos","events_url":"https://api.github.com/users/YourDeveloperFriend/events{/privacy}","received_events_url":"https://api.github.com/users/YourDeveloperFriend/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/YourDeveloperFriend/csurf","description":"CSRF token middleware","fork":true,"url":"https://api.github.com/repos/YourDeveloperFriend/csurf","forks_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/forks","keys_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/teams","hooks_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/hooks","issue_events_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/issues/events{/number}","events_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/events","assignees_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/assignees{/user}","branches_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/branches{/branch}","tags_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/tags","blobs_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/git/refs{/sha}","trees_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/statuses/{sha}","languages_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/languages","stargazers_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/stargazers","contributors_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/contributors","subscribers_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/subscribers","subscription_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/subscription","commits_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/commits{/sha}","git_commits_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/git/commits{/sha}","comments_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/comments{/number}","issue_comment_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/issues/comments{/number}","contents_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/contents/{+path}","compare_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/merges","archive_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/downloads","issues_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/issues{/number}","pulls_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/pulls{/number}","milestones_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/milestones{/number}","notifications_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/labels{/name}","releases_url":"https://api.github.com/repos/YourDeveloperFriend/csurf/releases{/id}","created_at":"2015-09-14T21:23:03Z","updated_at":"2015-09-14T21:23:04Z","pushed_at":"2015-09-15T02:24:27Z","git_url":"git://github.com/YourDeveloperFriend/csurf.git","ssh_url":"git@github.com:YourDeveloperFriend/csurf.git","clone_url":"https://github.com/YourDeveloperFriend/csurf.git","svn_url":"https://github.com/YourDeveloperFriend/csurf","homepage":null,"size":761,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"expressjs:master","ref":"master","sha":"b5dd3e200fe632879250acb69607a55ea24b269f","user":{"login":"expressjs","id":5658226,"avatar_url":"https://avatars.githubusercontent.com/u/5658226?v=3","gravatar_id":"","url":"https://api.github.com/users/expressjs","html_url":"https://github.com/expressjs","followers_url":"https://api.github.com/users/expressjs/followers","following_url":"https://api.github.com/users/expressjs/following{/other_user}","gists_url":"https://api.github.com/users/expressjs/gists{/gist_id}","starred_url":"https://api.github.com/users/expressjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/expressjs/subscriptions","organizations_url":"https://api.github.com/users/expressjs/orgs","repos_url":"https://api.github.com/users/expressjs/repos","events_url":"https://api.github.com/users/expressjs/events{/privacy}","received_events_url":"https://api.github.com/users/expressjs/received_events","type":"Organization","site_admin":false},"repo":{"id":17430647,"name":"csurf","full_name":"expressjs/csurf","owner":{"login":"expressjs","id":5658226,"avatar_url":"https://avatars.githubusercontent.com/u/5658226?v=3","gravatar_id":"","url":"https://api.github.com/users/expressjs","html_url":"https://github.com/expressjs","followers_url":"https://api.github.com/users/expressjs/followers","following_url":"https://api.github.com/users/expressjs/following{/other_user}","gists_url":"https://api.github.com/users/expressjs/gists{/gist_id}","starred_url":"https://api.github.com/users/expressjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/expressjs/subscriptions","organizations_url":"https://api.github.com/users/expressjs/orgs","repos_url":"https://api.github.com/users/expressjs/repos","events_url":"https://api.github.com/users/expressjs/events{/privacy}","received_events_url":"https://api.github.com/users/expressjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/expressjs/csurf","description":"CSRF token middleware","fork":false,"url":"https://api.github.com/repos/expressjs/csurf","forks_url":"https://api.github.com/repos/expressjs/csurf/forks","keys_url":"https://api.github.com/repos/expressjs/csurf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/expressjs/csurf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/expressjs/csurf/teams","hooks_url":"https://api.github.com/repos/expressjs/csurf/hooks","issue_events_url":"https://api.github.com/repos/expressjs/csurf/issues/events{/number}","events_url":"https://api.github.com/repos/expressjs/csurf/events","assignees_url":"https://api.github.com/repos/expressjs/csurf/assignees{/user}","branches_url":"https://api.github.com/repos/expressjs/csurf/branches{/branch}","tags_url":"https://api.github.com/repos/expressjs/csurf/tags","blobs_url":"https://api.github.com/repos/expressjs/csurf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/expressjs/csurf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/expressjs/csurf/git/refs{/sha}","trees_url":"https://api.github.com/repos/expressjs/csurf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/expressjs/csurf/statuses/{sha}","languages_url":"https://api.github.com/repos/expressjs/csurf/languages","stargazers_url":"https://api.github.com/repos/expressjs/csurf/stargazers","contributors_url":"https://api.github.com/repos/expressjs/csurf/contributors","subscribers_url":"https://api.github.com/repos/expressjs/csurf/subscribers","subscription_url":"https://api.github.com/repos/expressjs/csurf/subscription","commits_url":"https://api.github.com/repos/expressjs/csurf/commits{/sha}","git_commits_url":"https://api.github.com/repos/expressjs/csurf/git/commits{/sha}","comments_url":"https://api.github.com/repos/expressjs/csurf/comments{/number}","issue_comment_url":"https://api.github.com/repos/expressjs/csurf/issues/comments{/number}","contents_url":"https://api.github.com/repos/expressjs/csurf/contents/{+path}","compare_url":"https://api.github.com/repos/expressjs/csurf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/expressjs/csurf/merges","archive_url":"https://api.github.com/repos/expressjs/csurf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/expressjs/csurf/downloads","issues_url":"https://api.github.com/repos/expressjs/csurf/issues{/number}","pulls_url":"https://api.github.com/repos/expressjs/csurf/pulls{/number}","milestones_url":"https://api.github.com/repos/expressjs/csurf/milestones{/number}","notifications_url":"https://api.github.com/repos/expressjs/csurf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/expressjs/csurf/labels{/name}","releases_url":"https://api.github.com/repos/expressjs/csurf/releases{/id}","created_at":"2014-03-05T06:45:25Z","updated_at":"2015-09-14T19:13:23Z","pushed_at":"2015-09-15T02:24:27Z","git_url":"git://github.com/expressjs/csurf.git","ssh_url":"git@github.com:expressjs/csurf.git","clone_url":"https://github.com/expressjs/csurf.git","svn_url":"https://github.com/expressjs/csurf","homepage":null,"size":761,"stargazers_count":293,"watchers_count":293,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":10,"forks":41,"open_issues":10,"watchers":293,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/expressjs/csurf/pulls/82"},"html":{"href":"https://github.com/expressjs/csurf/pull/82"},"issue":{"href":"https://api.github.com/repos/expressjs/csurf/issues/82"},"comments":{"href":"https://api.github.com/repos/expressjs/csurf/issues/82/comments"},"review_comments":{"href":"https://api.github.com/repos/expressjs/csurf/pulls/82/comments"},"review_comment":{"href":"https://api.github.com/repos/expressjs/csurf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/expressjs/csurf/pulls/82/commits"},"statuses":{"href":"https://api.github.com/repos/expressjs/csurf/statuses/1223721cf1b9d6cc591ca14c9fb29dec1c7409d6"}}}}