Back

Does an OAuth sign in session trigger a user "create" event?

  • 0
  • Web
Dennis Ivy
24 Aug, 2023, 23:36

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?

TL;DR
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
24 Aug, 2023, 23:37

No it doesn't

Binyamin
24 Aug, 2023, 23:37

You can see here that the event is set only to account create

Dennis Ivy
24 Aug, 2023, 23:37

But a new user is created on the first sign in, how does this differ from a traditional "create" event?

Binyamin
24 Aug, 2023, 23:38

It's not different in that aspect, Just the API doesn't have that event for the OAuth2

Binyamin
24 Aug, 2023, 23:38

I think someone has created a feature/bug issue for it.

Dennis Ivy
24 Aug, 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.

Dennis Ivy
24 Aug, 2023, 23:39

Thank you Binyamin

Binyamin
24 Aug, 2023, 23:39

<a:agooglethumbsup:635256484682530825>

safwan
25 Aug, 2023, 06:02

Related issue here Make sure to give it a 👍

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more