rename param for google app id

auto-build-api-doc-with-code
Moe 2021-04-04 11:37:20 -07:00
parent bf1bb50d0c
commit 9a68b24136
3 changed files with 5 additions and 5 deletions

View File

@ -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'];

View File

@ -1,6 +1,6 @@
<% include blocks/header %>
<link rel="stylesheet" href="<%-window.libURL%>libs/themes/Ice/style.css">
<meta name="google-signin-client_id" content="<%- config.appTokenGoogle %>">
<meta name="google-signin-client_id" content="<%- config.appIdGoogleSignIn %>">
<style>
.wide-text{
text-transform: uppercase;

View File

@ -1,7 +1,7 @@
<%
window.libURL = originalURL + global.s.checkCorrectPathEnding(config.webPaths.home)
%>
<meta name="google-signin-client_id" content="<%- config.appTokenGoogle %>">
<meta name="google-signin-client_id" content="<%- config.appIdGoogleSignIn %>">
<script src="<%-window.libURL%>libs/js/jquery.min.js"></script>
<style>
body {