From f5735d85e38c8777afd4d914e3108f49aa7ad185 Mon Sep 17 00:00:00 2001 From: Joseph J Helfenbein Date: Sat, 25 Jan 2025 06:26:08 -0500 Subject: [PATCH] fix --- src/app/api/webhook/route.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {