Commit 52ec4902 authored by Evert Prants's avatar Evert Prants

I dont care

parent 55b4bcda
......@@ -30,19 +30,19 @@
var startApp = function() {
gapi.load('auth2', function(){
// Retrieve the singleton for the GoogleAuth library and set up the client.
auth2 = gapi.auth2.init({
var auth2 = gapi.auth2.init({
client_id: '#{auth.google}',
cookie_policy: 'single_host_origin',
fetch_basic_profile: true
}).then(function () {
attachSignin(document.querySelector('.google-login'));
attachSignin(auth2, document.querySelector('.google-login'));
}, function (e) {
console.error(e);
});
});
};
function attachSignin(element) {
function attachSignin(auth2, element) {
auth2.attachClickHandler(element, {},
function (googleUser) {
let profile = googleUser.getBasicProfile();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment