Skip to content

Commit ba20974

Browse files
sildurThangHuuVubalazsorban44
authoredSep 7, 2022
fix(providers): use client_secret_post token auth for LinkedIn (#5236)
* Send client_id and client_secret to linkedin Linkedin now requires client_id and client_secret to be sent in the oauth callback. Fixes #5220 * Update linkedin.ts Co-authored-by: Thang Vu <thvu@hey.com> Co-authored-by: Balázs Orbán <info@balazsorban.com>
1 parent 14b4ed1 commit ba20974

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎packages/next-auth/src/providers/linkedin.ts

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ export default function LinkedIn<P extends LinkedInProfile>(
3131
params: { scope: "r_liteprofile r_emailaddress" },
3232
},
3333
token: "https://www.linkedin.com/oauth/v2/accessToken",
34+
client: {
35+
token_endpoint_auth_method: "client_secret_post",
36+
},
3437
userinfo: {
3538
url: "https://api.linkedin.com/v2/me",
3639
params: {

0 commit comments

Comments
 (0)
Please sign in to comment.