Results from linkedin auth are null besides name #1541
-
Your question Is linkedin auth bugged for email? I'm trying to recover the email from linkedin with the scope 'r_emailaddress r_liteprofile', but the results are null. Linkedin's login confirmation page shows that the app is requesting email and I have another website that uses the same linkedin app that works, so I'm starting to believe that this might be a bug. Feedback
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
It's probably because the built-in LinkedIn provider does not set the email by default: next-auth/src/providers/linkedin.js Line 20 in 776b948 try overriding the profile callback and return e-mail for your provider. If it is something that can be fetched in one pass (meaning that adding a scope), I think the default LinkedIn provider behavior could also be tweaked to get the e-mail by default. |
Beta Was this translation helpful? Give feedback.
-
Hey @ludersGabriel , were you able to solve this? |
Beta Was this translation helpful? Give feedback.
-
see #1329 https://next-auth.js.org/configuration/providers#using-a-custom-provider |
Beta Was this translation helpful? Give feedback.
see #1329
https://next-auth.js.org/configuration/providers#using-a-custom-provider