diff --git a/src/app/api/webhook/route.js b/src/app/api/webhook/route.js index f059fad..2d15e01 100644 --- a/src/app/api/webhook/route.js +++ b/src/app/api/webhook/route.js @@ -49,7 +49,7 @@ export async function POST(req) { const eventType = evt.type; if (eventType === 'user.created') { - const { first_name, last_name, email_addresses } = evt.data; + const { id, first_name, last_name, email_addresses } = evt.data; const email = email_addresses?.[0]?.email_address || null; if (!email) {