__token in the URL of your view as a JWT token. This parameter has to be signed with your LATITUDE_MASTER_KEY that you will find in the .env file in the root of your latitude project.
If you don’t see a .env file in your project you can run:
LATITUDE_MASTER_KEY in an .env file
A note on security
It is crucial to add your.env file to your .gitignore before deploying to prevent exposure of your LATITUDE_MASTER_KEY.
Ensure that you generate a unique
LATITUDE_MASTER_KEY for the production environment.If you’re using Latitude Cloud, you can store the master key with
latitude secrets add LATITUDE_MASTER_KEY=<key_generated_by_previous_command>.Example
Imagine you want to obfuscate the parameterworkspace_id to be used in your query like this:
workspace_id parameter and try to send a different value. To avoid this you can sign the parameter workspace_id with the LATITUDE_MASTER_KEY like this:
This example is using our own JS implementation of JWT but you can easily do this in your server side language.