diff --git a/libs/auth/google.js b/libs/auth/google.js index ee46f6e7..b92e77a0 100644 --- a/libs/auth/google.js +++ b/libs/auth/google.js @@ -9,12 +9,12 @@ module.exports = (s,config,lang,app) => { bindLoginIdToUser, refreshLoginTokenAccessDate, } = require('./alternateLogins.js')(s,config,lang) - console.error(`Google App ID : ${config.appTokenGoogle}`) - const client = new OAuth2Client(config.appTokenGoogle); + console.error(`Google App ID : ${config.appIdGoogleSignIn}`) + const client = new OAuth2Client(config.appIdGoogleSignIn); async function verifyToken(userLoginToken) { const ticket = await client.verifyIdToken({ idToken: userLoginToken, - audience: config.appTokenGoogle, + audience: config.appIdGoogleSignIn, }); const payload = ticket.getPayload(); const userid = payload['sub']; diff --git a/web/pages/index.ejs b/web/pages/index.ejs index 91127706..9348cccd 100644 --- a/web/pages/index.ejs +++ b/web/pages/index.ejs @@ -1,6 +1,6 @@ <% include blocks/header %> - +