1

Setup LinkedIn Developer Portal

  1. Create a LinkedIn Developer account.
  2. Navigate to the My Apps section and create a new application.
  3. Obtain a Client ID and Client Secret from the LinkedIn OAuth settings. Be sure to set the redirect URL to your application handling the Nile Auth requests.
2

Save Client ID and Client Secret in Nile

Save the Client ID and Client Secret to your database at console.thenile.dev under LinkedIn in Tenants & Users -> Configuration

3

Add the LinkedIn button to your login page

The button will redirect the user to LinkedIn for authentication. Upon successful authentication, the user will be redirected back to your application.

import { LinkedIn } from '@niledatabase/react';

function App() {
  return (
    <div>
      <LinkedIn callbackUrl="/" />
    </div>
  );
}

Was this page helpful?