#Users.*.create event not triggerring as expected

13 messages · Page 1 of 1 (latest)

bleak bison
#

I have a cloud function which should create a new user document as soon as user otp validation completes successfully.
But when i create user from appwrite cloud , it seems to add that document and when i add a user from my app , the event doesnt trigger.
Problem 1 = Function not executed as event not triggering
Problem 2 = How to create a document only when user validates/verifies otp successfully.

radiant flame
#

Use users.*.verification.*update to trigger the function when the as soon as the user otp validation successfully completes. It's the last part in this section of the documentation https://appwrite.io/docs/events

Appwrite

Appwrite provides web and mobile developers with a set of easy-to-use and integrate REST APIs to manage their core backend needs.

bleak bison
#

there is no users.*.verification.*update option in appwrite cloud

manic narwhal
#

Hi - are you using the private cloud beta? just to confirm

bleak bison
#

yes

fathom spindle
bleak bison
#

update phone verification

#

basically i need to create an user document when the user successfully logs in first time in our application

#

it should not trigger for sessions as it will be many times for a particular user.

#

@fathom spindle can u please let me know what is the best way to this simple step.

fathom spindle
bleak bison
#

ok sir.. but this should be fixed as that would be regular requirement for all.
Or basically we can provide (enable) a simple option in settings/cli to create a user document in a user named collection whenever a user is done verified in auth user.

#

Thanks btw for saving my time again