Skip to content
Init is coming / May 19 - 23
Back

Need event name for new user creation

  • 0
  • Functions
Shlok
30 Oct, 2024, 21:56

I have included OAuth2 using Google only in my app. I am creating a function which will execute when a new user registers using their google account. Right now, I am only logging the response. Does anyone know what should be the event name attached to a function which enables it to run upon successful registration with Google account? I have tried these below but it doesn't work users.*.create users.*.delete users.*.verification.* providers.*

Anybody knows? Please help

TL;DR
Developers are looking for an event name that triggers a function upon successful new user creation using Google OAuth. Suggestions provided in the thread did not work. Solution: the correct event name is `users.create`.
Kenny
30 Oct, 2024, 21:58

Could you see if users.*.sessions.*.create works for you?

Shlok
30 Oct, 2024, 21:59

Sure Kenny. Will do it now

Kenny
30 Oct, 2024, 21:59

I would have expected users.*.create to work, when registering a new account though. But off the top of my head I'm not sure how oauth creates accounts.

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