HTML PHP google single sign on signout will throw “Cannot read property 'getAuthInstance' of undefined”

前端 未结 4 896
既然无缘
既然无缘 2021-02-07 04:46

I have created google single sign on by following steps mentioned in https://developers.google.com/identity/sign-in/web/sign-in

The sign in works like a charm but when

4条回答
  •  南旧
    南旧 (楼主)
    2021-02-07 05:07

    I had same issue and seems that I found solution for me and I think this should be the case.

    you should have method call like that, at the bottom of the script, like me, below:

    gapi.load("client", initAuth);
    

    this should be modified like

    gapi.load("client:auth2", initAuth);
    

    and this should work (at least worked for me).

提交回复
热议问题