Skip to main content

Get credentials

1

Create an application

Go to linkedin.com/developers/apps/new. You will need a LinkedIn Page associated with the app (create a company page if you do not have one).
2

Enable Sign In with LinkedIn

In your app dashboard, go to the Products tab and request access to Sign In with LinkedIn using OpenID Connect. This is usually granted immediately.
3

Add a redirect URL

Go to Auth > OAuth 2.0 settings. Under Authorized redirect URLs for your app, add:
4

Copy credentials

From the Auth tab, copy the Client ID and Client Secret.
LinkedIn’s legacy r_liteprofile and r_emailaddress scopes are deprecated. theAuth uses the OpenID Connect flow with openid, profile, and email scopes, which requires the “Sign In with LinkedIn using OpenID Connect” product to be enabled on your app.

Configuration

lib/theauth.ts

Scopes

Default scopes: openid profile email

User data returned

LinkedIn profile photos are hosted on their CDN and may require authentication headers to load in <img> tags depending on the user’s privacy settings. Store the URL in your database but be prepared for it to become inaccessible.

OAuth overview

Generic OAuth 2.0 setup and account linking behavior.

Slack

Another workspace-focused OAuth provider using OpenID Connect.

Microsoft

Sign in with Microsoft Entra ID for work accounts.

Authentication overview

All sign-in methods available in theAuth.
Last modified on October 7, 2026