Help Needed: Triggering Cloud Functions on User Verification Events in Appwrite
- 1
- Functions
- Auth
- Cloud
Hello everyone,
I am currently working on a project with Appwrite where I need to trigger a cloud function based on user verification events. However, I am facing an issue where my Python cloud function only executes successfully on the users.*.update event and not on the following events:
users.*.update.status
users.*.verification.*
users.*.verification.*.create
users.*.verification.*.update
I need the function to run when a user's verification status changes. Below are the relevant context.req.headers from my setup when the users.*.update event runs:
{
"$id": "XXXX",
"$createdAt": "2024-05-31T01:46:53.726+00:00",
"$updatedAt": "2024-05-31T02:06:46.022+00:00",
"name": "XXXX",
"password": "XXXX",
"hash": "XXXX",
"hashOptions": {
"type": "argon2",
"memoryCost": 2048,
"timeCost": 4,
"threads": 3
},
"registration": "2024-05-31T01:46:53.716+00:00",
"status": true,
"labels": [],
"passwordUpdate": "2024-05-31T01:46:53.716+00:00",
"email": "XXXX",
"phone": "XXXX",
"emailVerification": true,
"phoneVerification": false,
"mfa": false,
"prefs": [],
"targets": [
{
"$id": "XXXX",
"$createdAt": "2024-05-31T01:46:53.822+00:00",
"$updatedAt": "2024-05-31T01:46:53.822+00:00",
"name": "",
"userId": "XXXX",
"providerId": null,
"providerType": "email",
"identifier": "XXXX"
},
{
"$id": "XXXX",
"$createdAt": "2024-05-31T01:46:53.869+00:00",
"$updatedAt": "2024-05-31T01:46:53.869+00:00",
"name": "",
"userId": "XXXX",
"providerId": null,
"providerType": "sms",
"identifier": "XXXX"
}
],
"accessedAt": ""
}
Has anyone encountered a similar issue or does anyone have any suggestions on how to ensure the cloud function triggers for these verification-related events as well?
Recommended threads
- is `account.get()` safe to be used in th...
I want to user's `id` for authentication. However, a while ago I was told in this server not to use `account.get()` and instead add user preferences for that us...
- Appwrite console is too heavy
The Appwrite console is too heavy And all of my services broken Any support , please
- router_deployment_not_found
I updated my function a few times and now i am getting the error: router_deployment_not_found I even reverted back to my original code but i am still getting th...