{"action":"closed","issue":{"url":"https://api.github.com/repos/AntonioErdeljac/passport-tutorial/issues/8","repository_url":"https://api.github.com/repos/AntonioErdeljac/passport-tutorial","labels_url":"https://api.github.com/repos/AntonioErdeljac/passport-tutorial/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/AntonioErdeljac/passport-tutorial/issues/8/comments","events_url":"https://api.github.com/repos/AntonioErdeljac/passport-tutorial/issues/8/events","html_url":"https://github.com/AntonioErdeljac/passport-tutorial/issues/8","id":393734103,"node_id":"MDU6SXNzdWUzOTM3MzQxMDM=","number":8,"title":"Invalid Token when hitting api with auth.required","user":{"login":"bansalnitin92","id":5591935,"node_id":"MDQ6VXNlcjU1OTE5MzU=","avatar_url":"https://avatars1.githubusercontent.com/u/5591935?v=4","gravatar_id":"","url":"https://api.github.com/users/bansalnitin92","html_url":"https://github.com/bansalnitin92","followers_url":"https://api.github.com/users/bansalnitin92/followers","following_url":"https://api.github.com/users/bansalnitin92/following{/other_user}","gists_url":"https://api.github.com/users/bansalnitin92/gists{/gist_id}","starred_url":"https://api.github.com/users/bansalnitin92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bansalnitin92/subscriptions","organizations_url":"https://api.github.com/users/bansalnitin92/orgs","repos_url":"https://api.github.com/users/bansalnitin92/repos","events_url":"https://api.github.com/users/bansalnitin92/events{/privacy}","received_events_url":"https://api.github.com/users/bansalnitin92/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-23T08:57:25Z","updated_at":"2018-12-26T18:00:58Z","closed_at":"2018-12-26T18:00:58Z","author_association":"NONE","body":"throwing UnauthorizedError: invalid token error \r\n\r\nheaders : \r\n{ authorization: 'Token j%3A%7B%22token%22%3A%22eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImJhbnNhbG5pdGluOTJAZ21haWwuY29tIiwiaWQiOiI1YzFlOGVhMWM3MmRkNzRlODczZDE4M2EiLCJleHAiOjE1NTA3Mzc3MjksImlhdCI6MTU0NTU1MzcyOX0.cZymBkHkJayipmkUpPIUNWrOgzQ7qxk4RugZ70g-3ls%22%7D',\r\n  'content-type': 'application/json',\r\n  'cache-control': 'no-cache',\r\n  'postman-token': '91df4d01-6a0e-434e-ad91-60c9bb38f319',\r\n  'user-agent': 'PostmanRuntime/7.3.0',\r\n  accept: '*/*',\r\n  host: 'localhost:8081',\r\n  'accept-encoding': 'gzip, deflate',\r\n  connection: 'keep-alive' }\r\n\r\nI tried this on Postman and Browser using cookies both. But getting same error. Could you please help me out here."}}
{"actor":{"display_login":"bansalnitin92"}}