kstulgysOriginal post
Rank 2: Process
So I create jwt on the frontend for the user:
const promise = account.createJWT();
How do I retrieve it on the backend?
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('[PROJECT_ID]') // Your project ID
.setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token
Summary
The user wants to know how to retrieve a JWT on the server. The JWT can be obtained from the `APPWRITE_FUNCTION_JWT` variable. To retrieve the JWT on the backend, use the `setJWT` function and pass the JWT as a parameter.