Skip to content

Commit

Permalink
Call php app with auth token
Browse files Browse the repository at this point in the history
  • Loading branch information
whimet committed Oct 26, 2023
1 parent 3532145 commit 5a0eb83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firebase-functions/paddle-webhook/functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ exports.sync_diagram = functions.https.onRequest(async (req, res) => {
'Content-Type': 'application/json'
}
};
const data = JSON.stringify({name: req.body.name, content: req.body.content, description: req.body.description,imageBase64: req.body.imageBase64});
const data = JSON.stringify({token: req.body.token, name: req.body.name, content: req.body.content, description: req.body.description,imageBase64: req.body.imageBase64});
console.log('http request with:', options, data);

const request = http.request(options, (response) => {
let responseData = '';
Expand Down

0 comments on commit 5a0eb83

Please sign in to comment.