From a14a430d51520048c14aea9b1cd3fedb4049551f Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Tue, 28 Jan 2020 23:56:24 +0200 Subject: [PATCH] Attempt to fix google signin --- views/includes/external.pug | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/views/includes/external.pug b/views/includes/external.pug index 333e3e6..dcbb4fd 100644 --- a/views/includes/external.pug +++ b/views/includes/external.pug @@ -21,7 +21,7 @@ }(document, 'script', 'facebook-jssdk')); fb:login-button(scope="public_profile,email", onlogin="checkLoginState();" data-max-rows="1", data-size="large", data-button-type="login_with", data-show-faces="false", data-auto-logout-link="false", data-use-continue-as="false") if auth.google - script(src="https://apis.google.com/js/api:client.js") + script(src="https://apis.google.com/js/platform.js?onload=startApp") a.login-btn.google-login.float-lg-right i.fab.fa-fw.fa-google span Log in With Google @@ -32,7 +32,7 @@ // Retrieve the singleton for the GoogleAuth library and set up the client. auth2 = gapi.auth2.init({ client_id: '#{auth.google}', - cookiepolicy: 'single_host_origin', + cookie_policy: 'single_host_origin', fetch_basic_profile: true }); attachSignin(document.querySelector('.google-login')); @@ -57,8 +57,6 @@ alert('Failed to log you in using Google.'); }); } - - startApp() if auth.twitter a.login-btn.twitter-login.login-dialog-pop.float-lg-right(href="/api/external/twitter/login") i.fab.fa-fw.fa-twitter