add console.log
This commit is contained in:
parent
03201fe9c0
commit
f9c3448b86
1 changed files with 4 additions and 2 deletions
|
|
@ -37,8 +37,6 @@ const handleCallback = async (req, res) => {
|
|||
})
|
||||
);
|
||||
|
||||
console.log("Token response:", tokenResponse.data); // Log the entire response
|
||||
|
||||
const accessToken = tokenResponse.data.access_token;
|
||||
|
||||
// Récupère les infos utilisateur
|
||||
|
|
@ -48,6 +46,8 @@ const handleCallback = async (req, res) => {
|
|||
},
|
||||
});
|
||||
|
||||
console.log("Profile response:", profileResponse.data); // Log the entire profile response
|
||||
|
||||
const emailResponse = await axios.get(
|
||||
"https://api.linkedin.com/v2/emailAddress?q=members&projection=(elements*(handle~))",
|
||||
{
|
||||
|
|
@ -57,6 +57,8 @@ const handleCallback = async (req, res) => {
|
|||
}
|
||||
);
|
||||
|
||||
console.log("Email response:", emailResponse.data); // Log the entire email response
|
||||
|
||||
// Stocke dans la session
|
||||
req.session.user = {
|
||||
accessToken,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue