WorkOS Sign In Preview

Create WorkOS Account

Get the Client ID

  • In the WorkOS dashboard, click on Configuration in the left menu.
  • Copy the Client ID, which starts with project_.
  • Paste the Client ID in the Client ID field in the WorkOS settings in the Nhost Dashboard.

Set correct Redirect URI

  • In the WorkOS dashboard, click on Configuration in the left menu.
  • Click on Edit Redirect URIs in the Redirect URIs section.
  • Add the Redirect URL from the Nhost Dashboard to the list of Redirect URIs.
  • Set the newly added redirect URI as the Default Redirect URI.
  • Click on Close.

Get the Client Secret

  • In the WorkOS dashboard, click on API Keys in the left menu.
  • Click on the eye icon next to the Client Secret to reveal it.
  • Copy the Client Secret, which stars with sk_.
  • Paste the Client Secret in the Client Secret field in the WorkOS settings in the Nhost Dashboard.

Get Organization ID

  • In the WorkOS dashboard, click on Organizations in the left menu.
  • Click on Create an Organization.
  • Fill in the organization details and click on Create Organization.
  • Click on the newly created organization.
  • Copy the Organization ID, which stars with org_.
  • Paste the Organization ID in the Organization ID field in the WorkOS settings in the Nhost Dashboard.
  • Click Save in the Nhost Dashboard to save all WorkOS settings.

The WorkOS configuration is now completed with Nhost.

See the WorkOS documentation to learn more about how to configure WorkOS.

Sign In Users

Use the Nhost JavaScript client to sign in users:

nhost.auth.signIn({
  provider: 'workos'
})