{"action":"created","issue":{"url":"https://api.github.com/repos/jmreyes/passport-google-id-token/issues/7","labels_url":"https://api.github.com/repos/jmreyes/passport-google-id-token/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/jmreyes/passport-google-id-token/issues/7/comments","events_url":"https://api.github.com/repos/jmreyes/passport-google-id-token/issues/7/events","html_url":"https://github.com/jmreyes/passport-google-id-token/issues/7","id":126993479,"number":7,"title":"401 Unauthorized","user":{"login":"remirobert","id":3276768,"avatar_url":"https://avatars.githubusercontent.com/u/3276768?v=3","gravatar_id":"","url":"https://api.github.com/users/remirobert","html_url":"https://github.com/remirobert","followers_url":"https://api.github.com/users/remirobert/followers","following_url":"https://api.github.com/users/remirobert/following{/other_user}","gists_url":"https://api.github.com/users/remirobert/gists{/gist_id}","starred_url":"https://api.github.com/users/remirobert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remirobert/subscriptions","organizations_url":"https://api.github.com/users/remirobert/orgs","repos_url":"https://api.github.com/users/remirobert/repos","events_url":"https://api.github.com/users/remirobert/events{/privacy}","received_events_url":"https://api.github.com/users/remirobert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-16T02:00:52Z","updated_at":"2016-01-16T10:23:59Z","closed_at":null,"body":"Hello,\r\n\r\nI used your module to authenticate my user from mobile. So I got the access token throw the google SDK, in the mobile side. I sent it to my API throw a POST request with the argument access_token.\r\n\r\nI got an error in your module here: \r\n```Javascript\r\nvar decodedToken = jwt.decode(idToken, {complete: true, json: true});\r\n```\r\n\r\nI checked the idToken is well filled with my token passed throw the http POST request.\r\n\r\nFor the passport strategy, I just provide the google ID: \r\n```Javascript\r\npassport.use(new GoogleTokenStrategy({\r\n    clientID: configAuth.google.appID\r\n  },...\r\n```\r\n\r\nThanks in advance for your help."},"comment":{"url":"https://api.github.com/repos/jmreyes/passport-google-id-token/issues/comments/172179979","html_url":"https://github.com/jmreyes/passport-google-id-token/issues/7#issuecomment-172179979","issue_url":"https://api.github.com/repos/jmreyes/passport-google-id-token/issues/7","id":172179979,"user":{"login":"jmreyes","id":1638459,"avatar_url":"https://avatars.githubusercontent.com/u/1638459?v=3","gravatar_id":"","url":"https://api.github.com/users/jmreyes","html_url":"https://github.com/jmreyes","followers_url":"https://api.github.com/users/jmreyes/followers","following_url":"https://api.github.com/users/jmreyes/following{/other_user}","gists_url":"https://api.github.com/users/jmreyes/gists{/gist_id}","starred_url":"https://api.github.com/users/jmreyes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmreyes/subscriptions","organizations_url":"https://api.github.com/users/jmreyes/orgs","repos_url":"https://api.github.com/users/jmreyes/repos","events_url":"https://api.github.com/users/jmreyes/events{/privacy}","received_events_url":"https://api.github.com/users/jmreyes/received_events","type":"User","site_admin":false},"created_at":"2016-01-16T10:23:59Z","updated_at":"2016-01-16T10:23:59Z","body":"Hi! What kind of error are you getting? That line should call [this method](https://github.com/auth0/node-jsonwebtoken/blob/master/index.js#L12) from the `jsonwebtoken` module. You could also try to decode the token using e.g. https://jwt.io/ and tell me about its structure, so that I can try to replicate the problem. Thanks!"}}