I am trying to create a webhook that sends a signal anytime a new user is created. When I do this with a user email and password the webhook triggers correctly.
However, when I signed in with google it does not. To the best of my knowledge, if this is the first time signing in, a new user is created, therefor triggering the "create" event. Is my thinking correct here?
Summary
The user is asking if an OAuth sign in session triggers a user "create" event. They mention a related issue and provide a link for more information. They also mention that they have a solution but are looking for a native way to handle this. They mention that the API doesn't have an event for OAuth2, but a new user is created on the first sign in. They provide a code snippet to show that the event is only set for account create. They have created a webhook that triggers correctly when a user signs up with email and password, but it does not trigger when signing in with Google. They want to confirm if their
Binyamin
Aug 24, 2023, 23:37
No it doesn't
Binyamin
Aug 24, 2023, 23:37
You can see here that the event is set only to account create
Dennis Ivy
Core
Aug 24, 2023, 23:37
But a new user is created on the first sign in, how does this differ from a traditional "create" event?
Binyamin
Aug 24, 2023, 23:38
It's not different in that aspect,
Just the API doesn't have that event for the OAuth2
Binyamin
Aug 24, 2023, 23:38
I think someone has created a feature/bug issue for it.
Dennis Ivy
Core
Aug 24, 2023, 23:39
OK that makes it clear. I already have a solution for this but was hoping there was a native way to do this.