javascript
javascript copied to clipboard
Webhook Not Triggering on Clerk OAuth User Creation
Preliminary Checks
-
[X] I have reviewed the documentation: https://clerk.com/docs
-
[X] I have searched for existing issues: https://github.com/clerk/javascript/issues
-
[X] I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)
-
[X] This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.
Reproduction
https://github.com/AKRAM-2002/calisthenics-pro-lp
Publishable key
pk_test_ZGVjaWRp
Description
I'm using Clerk for user authentication in my application, and I have set up a webhook to capture user creation events (user.created). The purpose of this webhook is to persist user data in a MongoDB database. However, the webhook is not being triggered when a user signs up with a Google OAuth account.
Despite using ngrok to expose my backend server (running on port 5000), I am not seeing any logs from the webhook, and Clerk does not seem to be calling the webhook endpoint.
Steps to Reproduce:
- Set up a webhook handler on my Express server (running on port 5000)
- I used ngrok to expose the server running on port 5000(ngrok http 5000)
- updated the webhook URL in the Clerk dashboard
- test: Signed up a new user using Google OAuth in the Clerk frontend
Result:
-
Clerk not triggering the webhook for OAuth-based signups or missing some configuration on my end.
-
The webhook endpoint does not appear to be triggered at all. No logs are produced by the server, and no entries are saved to the database
Environment
Express server running locally on port 5000
Clerk integration with OAuth Google login
Webhook configured with ngrok URL