Skip to content

Commit 6e23316

Browse files
Merge pull request #140 from IABTechLab/eee-fix-policy-parameter-token-generate
Add policy parameter to /token/generate requests
2 parents a515bdd + f7e5c62 commit 6e23316

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

web-integrations/google-secure-signals/client-server/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function createEnvelope(payload) {
124124
}
125125

126126
app.post('/login', async (req, res) => {
127-
const jsonEmail = JSON.stringify({ email: req.body.email });
127+
const jsonEmail = JSON.stringify({ email: req.body.email, policy: 1 });
128128
const { envelope, nonce } = createEnvelope(jsonEmail);
129129

130130
const headers = {

web-integrations/google-secure-signals/server-side/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ app.get('/getFreshToken', async (req, res) => {
205205
});
206206

207207
app.post('/login', async (req, res) => {
208-
const jsonEmail = JSON.stringify({ email: req.body.email });
208+
const jsonEmail = JSON.stringify({ email: req.body.email, policy: 1 });
209209
const { envelope, nonce } = createEnvelope(jsonEmail);
210210

211211
const headers = {

web-integrations/javascript-sdk/client-server/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function createEnvelope(payload) {
113113
}
114114

115115
app.post('/login', async (req, res) => {
116-
const jsonEmail = JSON.stringify({ 'email': req.body.email });
116+
const jsonEmail = JSON.stringify({ 'email': req.body.email, 'policy': 1 });
117117
const { envelope, nonce } = createEnvelope(jsonEmail);
118118

119119
const headers = {

web-integrations/prebid-integrations/client-server/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ app.get('/', (req, res) => {
123123

124124
// POST /login - Generates UID2/EUID token for email address
125125
app.post('/login', async (req, res) => {
126-
const jsonEmail = JSON.stringify({ email: req.body.email });
126+
const jsonEmail = JSON.stringify({ email: req.body.email, policy: 1 });
127127
const { envelope, nonce } = createEnvelope(jsonEmail);
128128

129129
const headers = {

web-integrations/server-side/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ app.get('/', async (req, res) => {
177177
});
178178

179179
app.post('/login', async (req, res) => {
180-
const jsonEmail = JSON.stringify({ 'email': req.body.email });
180+
const jsonEmail = JSON.stringify({ 'email': req.body.email, 'policy': 1 });
181181
const { envelope, nonce } = createEnvelope(jsonEmail);
182182

183183
const headers = {

0 commit comments

Comments
 (0)