OAuth session not sending trigger for events like session create or users create.
- 0
- Functions
- Auth
this is basic feature needed for everyone as there is no way to execute a function to send a welcome email, and do some reservations in the databases, this bug prevents Appwrite users for using the OAUTH and other login functionalities itself. also i had verified for the Session create event too for the OAuth it didn't worked for that as well, what am i supposed to do?
I have a function that is responsible for sign ups. It listens to these two events "users..create" "users..sessions.*.create"
When the event that triggered is "users.*.create" I will create a user document(among other documents) in appwrite database and send a welcome email.
When the event is "users..sessions..create" I will check if the session.provider is "google" or any other oAuth that I have enabled. If that is the case I will then check if the user has a user document in appwrite database. If not then it means the user just signed up with google and I will create all the user documents and send a welcome email. If the user has a user document already I do nothing.
Session Object: https://appwrite.io/docs/references/cloud/models/session
Recommended threads
- Worker functions stuck on "Fetched 0 fun...
Appwrite Version: 1.9.0 Bug Description: The appwrite-worker-functions container gets stuck in an infinite loop logging "Fetched 0 functions..." while scheduled...
- I am using s3 for app storage but is it ...
_APP_STORAGE_DEVICE=s3 puts everything to the s3 storage but i need to be able to keep the function builds and site in the local and not waste the cloud storage...
- Local Serverless Function Testing: Are D...
I have followed the instructions to get the CLI working, and have been able to log-in, initialize my project, and created a simple Python function, which calls ...