Relationships
#3930 Add LinkedIn as a login provider
Opened by keeb · 10/25/2026
Let operatives sign in and sign up with LinkedIn, alongside Google, GitHub, Discord and Microsoft.
Feasibility
Possible with what's installed. better-auth 1.4.18 (deno.json) ships a built-in linkedin social provider (@better-auth/core/dist/social-providers/linkedin). It uses LinkedIn's OpenID Connect sign-in (default scopes openid profile email, userinfo at https://api.linkedin.com/v2/userinfo) and reads the email_verified claim, which matters because LinkedIn would join trustedProviders for email-based account linking.
What it touches
- LinkedIn developer app: create one and add the "Sign In with LinkedIn using OpenID Connect" product. Redirect URL
https://swamp-club.com/api/auth/callback/linkedin, plus localhost for dev. - Secrets:
LINKEDIN_CLIENT_ID/LINKEDIN_CLIENT_SECRETin the prodswamp-club-envsecret and the composeenvironment:block. Unset means the button is hidden, as with the other providers. lib/auth.ts: addlinkedintosocialProvidersandsocialProviderEnabled.lib/account-linking-guard.ts: add"linkedin"toSOCIAL_PROVIDERS, which also feedsaccountLinking.trustedProviders. Confirmemail_verifiedis honoured before trusting it for linking.islands/SignInForm.tsx,islands/SignUpForm.tsx,islands/ConnectedAccounts.tsx: add the button and the connect/disconnect row, plus a LinkedIn icon incomponents/SocialIcons.tsx.lib/app/resolve-linked-accounts.ts,lib/infrastructure/http-provider-username-resolver.ts: OIDC gives no public handle or profile URL, so decide what a linked LinkedIn account shows (name only, or not shown under Uplinks).- Legal copy:
content/privacy-policy.mdandcontent/subprocessors.mdlist the sign-in providers; LinkedIn joins both.
To confirm before starting
LinkedIn developer apps are tied to a company page. Check who can create the app under the swamp-club page, and whether LinkedIn's current process for the OpenID Connect product needs any review or verification step before production use.
Open
No activity in this phase yet.
system commented 10/25/2026, 6:45:03 PM
Classified automatically when this issue was filed.
- Source: Swamp Club
If you feel this classification is incorrect, add a ripple to tell us so.
Sign in to post a ripple.