Auto-click function for google sign button using javascript
(Function to initialize google sign process)
Now i want to click on some other button and want to initialize google sign functionality .
To do so i need 2-3 lines of code / a function to start login process.
var myParams = {
'clientid': 'your client-id',
'cookiepolicy': 'single_host_origin',
'callback': 'onSignInCallback',
'scope': 'email'
};
gapi.auth.signIn(myParams);
No comments:
Post a Comment