Preventing automatic sign-in when using Google+ Sign-In

前端 未结 10 2128
陌清茗
陌清茗 2020-12-01 02:02

I am in the process of integrating Google+ sign in with my site, which also lets users sign in with Twitter and Facebook. The sign in page of the site therefore has 3 button

10条回答
  •  隐瞒了意图╮
    2020-12-01 02:41

    The accepted answer no longer works when you start to use both Google Sign In and OAuth access tokens for other Google services. The access tokens expire immediately when the user is signed out. Instead, I would recommend the answer from this SO post, which involves attaching a click event handler to the Google sign in button. Only once the user clicks the sign in button and successfully logs into their Google account will the callbacks events fire.

提交回复
热议问题