unable to obtain access_token Google+ signin using auth2 javascript

喜欢而已 提交于 2020-01-04 05:21:26

问题


I am trying to integrate google+ login with my website using javascript sdk, Though I am able to validate the user I need to obtain an access token on successful signin which I pass to the server to obtain further information. I went through the documentation in google developer console in this link: Google Sign-In for Websites

in that is could see a method GoogleUser.getAuthResponse() whose response object must contain an access_token.

However in my response object I couldn't find the access_token , but all the remaining key were present. I am not sure if the documentation is outdated.

Please help with me a solution this problem.

来源:https://stackoverflow.com/questions/32877115/unable-to-obtain-access-token-google-signin-using-auth2-javascript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!