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
- Sudden CORS Errors - Domain hasn't Chang...
I have an Appwrite project with two web apps configured, the first one has the hostname `*` and the second one I just added to test if it could fix the issue wi...
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...