Back

how to verify user in cloud functions?

  • 0
  • Functions
  • Web
  • Cloud
mckoda09
2 Feb, 2024, 11:26

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

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more