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

前端 未结 10 2112
陌清茗
陌清茗 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:34

    Just check for g-auth-window in the callback function:

        function google_sign_callback(authResult){
            if(authResult['g-oauth-window']){
    
            }else if(authResult['error']) {
    
            }
        }
    

提交回复
热议问题