Integrations / Auth & Identity / Auth0
Use Auth0's Post-Registration Action to fire a LogIt event the moment a user creates an account โ no webhook endpoint needed.
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.
In your Auth0 dashboard: Actions โ Flows โ Post User Registration โ Add Action โ Build from scratch.
// 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),
});
};
In the Action editor, click Secrets and add:
| Key | Value |
|---|---|
LOGIT_API_KEY | lk_live_xxxxxxxxxxxxxxxx |
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.