{"action":"opened","issue":{"url":"https://api.github.com/repos/auth0/express-jwt/issues/66","labels_url":"https://api.github.com/repos/auth0/express-jwt/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/auth0/express-jwt/issues/66/comments","events_url":"https://api.github.com/repos/auth0/express-jwt/issues/66/events","html_url":"https://github.com/auth0/express-jwt/issues/66","id":65599637,"number":66,"title":"credentialsRequired and the setting of request.user on failed verification?","user":{"login":"jasonkenneth","id":980227,"avatar_url":"https://avatars.githubusercontent.com/u/980227?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonkenneth","html_url":"https://github.com/jasonkenneth","followers_url":"https://api.github.com/users/jasonkenneth/followers","following_url":"https://api.github.com/users/jasonkenneth/following{/other_user}","gists_url":"https://api.github.com/users/jasonkenneth/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonkenneth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonkenneth/subscriptions","organizations_url":"https://api.github.com/users/jasonkenneth/orgs","repos_url":"https://api.github.com/users/jasonkenneth/repos","events_url":"https://api.github.com/users/jasonkenneth/events{/privacy}","received_events_url":"https://api.github.com/users/jasonkenneth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-01T03:57:31Z","updated_at":"2015-04-01T03:57:31Z","closed_at":null,"body":"I have a use case where I do not want to requireCredentials but I still want to populate request.user if given a *valid* credential. \r\n\r\nCurrently, even if verify fails, the express-jwt request handler still sets request.user.\r\nhttps://github.com/auth0/express-jwt/blob/master/lib/index.js#L104\r\n"}}