javascript - how to signup user using google-plus integradation in web? -
hi i'm trying integrate google plus in web application. have added google-plus button using link page instructed.when click on button open window access user accept or cancel. how use object user login application?
function signincallback(authresult) { if (authresult['status']['signed_in']) { // update app reflect signed in user // hide sign-in button user authorized, example: document.getelementbyid('signinbutton').setattribute(); } else { // update app reflect signed out user // possible error values: // "user_signed_out" - user signed-out // "access_denied" - user denied access app // "immediate_failed" - not automatically log in user console.log('sign-in state: ' + authresult['error']); } }
Comments
Post a Comment