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
- Active Running Project Deletion Alert Em...
Hi , I received an email alert from Appwrite today stating “your project will be deleted within 14 days if no action is taken,” though I have been actively usin...
- Project restoration button in console
The project restore button in console is taking no effect, i have tried several times and still nothing, it gives same popup if i reload
- SGP region: console returns 401 for all ...
Cloud console cannot open my projects in the Singapore (SGP) region. All console requests return HTTP 401, plus a 503 on analytics.appwrite.io. - Account email...