LinkedIn OpenID Connect userinfo with PKCE.
LinkedIn integration uses the OIDC /userinfo endpoint. PKCE (S256) is on by default.
# .env.local
AUTH_SECRET=your-secret-key-min-32-chars-long
LINKEDIN_CLIENT_ID=your-linkedin-client-id
LINKEDIN_CLIENT_SECRET=your-linkedin-client-secret
LINKEDIN_REDIRECT_URI=http://localhost:3000/api/auth/callback/linkedinMinimal configuration
import { linkedin } from '@warpy-auth-sdk/core';
const provider = linkedin({
clientId: process.env.LINKEDIN_CLIENT_ID!,
clientSecret: process.env.LINKEDIN_CLIENT_SECRET!,
redirectUri: process.env.LINKEDIN_REDIRECT_URI!,
scope: ['openid', 'profile', 'email'],
});