Skip to content

Commit 81cbe2d

Browse files
fix(providers): Update linkedin.ts to support new scopes (#11805)
LinkedIn has updated scopes for OAuth and doesn't support r_emailaddress anymore. error_description: 'Scope "r_emailaddress" is not authorized for your application', providerId: 'linkedin', message: 'unauthorized_scope_error'
1 parent 1fac7d3 commit 81cbe2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function LinkedIn<P extends LinkedInProfile>(
2828
type: "oauth",
2929
authorization: {
3030
url: "https://www.linkedin.com/oauth/v2/authorization",
31-
params: { scope: "r_liteprofile r_emailaddress" },
31+
params: { scope: "openid profile email" },
3232
},
3333
token: "https://www.linkedin.com/oauth/v2/accessToken",
3434
client: {

0 commit comments

Comments
 (0)