how can I check that the function was executed exactly by the user who was provided in x-appwrite-user-id?
TL;DR
Developers want to know how to verify a user in cloud functions. They can use JWT in the server SDK for enhanced security. To check if the function was executed by the specific user provided in x-appwrite-user-id, they can compare the user ID from the JWT with the x-appwrite-user-id header.
kamal.panara
2 Feb, 2024, 11:30
You can use JWT in server SDK that’s more secure, in functions