fix: LinkedinProvider config was incorrect
This commit is contained in:
@@ -38,9 +38,22 @@ export const authConfig: NextAuthConfig = {
|
||||
clientId: process.env.GOOGLE_ID,
|
||||
clientSecret: process.env.GOOGLE_SECRET,
|
||||
}),
|
||||
// config based on https://github.com/nextauthjs/next-auth/issues/8831
|
||||
LinkedinProvider({
|
||||
clientId: process.env.LINKEDIN_ID,
|
||||
clientSecret: process.env.LINKEDIN_SECRET,
|
||||
authorization: { params: { scope: 'email openid' } },
|
||||
issuer: 'https://www.linkedin.com',
|
||||
jwks_endpoint: "https://www.linkedin.com/oauth/openid/jwks",
|
||||
async profile(profile) {
|
||||
return {
|
||||
id: profile.sub,
|
||||
name: profile.name,
|
||||
firstname: profile.given_name,
|
||||
lastname: profile.family_name,
|
||||
email: profile.email
|
||||
}
|
||||
},
|
||||
})
|
||||
],
|
||||
secret: process.env.AUTH_SECRET,
|
||||
|
||||
Reference in New Issue
Block a user