Integrations / Auth & Identity / Auth0

๐Ÿ”’

Auth0

Use Auth0's Post-Registration Action to fire a LogIt event the moment a user creates an account โ€” no webhook endpoint needed.


How it works

Auth0 Actions run inside the authentication pipeline. A Post-Registration Action fires after a user registers, before they reach your app โ€” perfect for tracking new signups without managing a webhook endpoint.

Create the Action

In your Auth0 dashboard: Actions โ†’ Flows โ†’ Post User Registration โ†’ Add Action โ†’ Build from scratch.

js
// Auth0 Action: post-registration
exports.onExecutePostUserRegistration = async (event) => {
  const payload = {
    channel: "signups",
    event: "New user signed up via Auth0",
    description: event.user.email,
    icon: "๐Ÿ‘ค",
    notify: true,
    tags: {
      provider: event.connection.strategy,
      app: event.client.name,
    },
    metadata: {
      auth0UserId: event.user.user_id,
      email: event.user.email,
      name: event.user.name,
      connection: event.connection.name,
    },
  };

  await fetch("https://api.logit.now/api/ingest", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
      Authorization: `Bearer ${event.secrets.LOGIT_API_KEY}`,
    },
    body: JSON.stringify(payload),
  });
};

Add your secret

In the Action editor, click Secrets and add:

KeyValue
LOGIT_API_KEYlk_live_xxxxxxxxxxxxxxxx

Deploy

Click Deploy and add the action to the Post User Registration flow. Every new signup will now appear in your LogIt inbox.

Tip: Auth0 Actions use the native fetch โ€” no npm install needed.

Ready to connect Auth0?

7-day free trial. No credit card required.

Start free