This commit is contained in:
AMAICDAX 2025-09-03 11:50:26 +02:00
parent cf48f6aa7d
commit 03201fe9c0

View file

@ -6,7 +6,7 @@ const querystring = require("querystring");
const clientId = "780w7gsy8eysmj"; const clientId = "780w7gsy8eysmj";
const clientSecret = "WPL_AP1.w6OTTkAndAdT3PYF.UZEcwQ=="; const clientSecret = "WPL_AP1.w6OTTkAndAdT3PYF.UZEcwQ==";
const redirectUri = "http://localhost:4200/api/auth/linkedin/callback"; const redirectUri = "http://localhost:4200/api/auth/linkedin/callback";
const scope = "r_liteprofile r_emailaddress"; const scope = "openid profile email";
let accessToken = ""; let accessToken = "";
@ -37,6 +37,8 @@ const handleCallback = async (req, res) => {
}) })
); );
console.log("Token response:", tokenResponse.data); // Log the entire response
const accessToken = tokenResponse.data.access_token; const accessToken = tokenResponse.data.access_token;
// Récupère les infos utilisateur // Récupère les infos utilisateur