rename param for google app id
parent
bf1bb50d0c
commit
9a68b24136
|
@ -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'];
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue