Back

Is there a method to validate if the jwt token is from appwrite generated?

  • 0
  • Functions
  • REST API
Mosh Ontong
12 Jan, 2024, 13:48

In server side (cloud function) we can use the jwt token on .setJWT however I am not planning to set my Appwrite Instance with setJWT, I will use the API Key so that I can access all data in my database whatever the permssion settled. Because as my knowledge know that if we setJWT it will gives us limit access on some document that based on the permission set. And also that if the cloud function execute on client side it will gives automatically jwt token that will pass it on headers alongside on the execution of function. Hence, I want some method that will check if the jwt token given is generated from appwrite server. Is there a method for that?

TL;DR
Title: Checking if a JWT token is generated by Appwrite Message: The developer wants to know if there is a method to validate if a JWT token is generated by Appwrite server. They mention that they don't plan to use setJWT on their Appwrite instance and instead will use the API Key for full database access. They also mention that executing a cloud function on the client-side automatically provides a JWT token in the headers. The developer is seeking a method to check if the given JWT token is generated by the Appwrite server. Is there a solution for this?
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