1

Setup HubSpot Developer Portal

  1. Create a HubSpot Developer account
  2. Follow the documentation for creating an application in HubSpot.
  3. Obtain a Client ID and Client Secret from HubSpot OAuth. 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 them to your database at console.thenile.dev under HubSpot in Tenants & Users -> Configuration

3

Add the `HubSpot` button to your login page

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

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

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

Was this page helpful?