Quick start
To get the identity logic setup quickly, you can generate access tokens using our Command Line Interface (CLI) tool.
Generate test access tokens
From the same directory as your Vizzly private key, you can run the following command;
vizzly access-tokens
This should give you an output of JSON that is in this structure
{
"dashboardAccessToken": "<< a token >>",
"dataAccessToken": "<< a token >>",
"queryEngineAccessToken": "<< a token >>"
}
Using the test tokens
Once you have the dashboard set up, which is the next step, you will be able to simply return these tokens from the identity
prop. For example;
<Vizzly.Dashboard
identity={async () => {
return {
"dashboardAccessToken": "<< a token >>",
"dataAccessToken": "<< a token >>",
"queryEngineAccessToken": "<< a token >>"
}
}}
/>
Please note, that these tokens have a short expiry, and might need to be re-generated a few times until your production-ready implementation is completed.
Next steps
Next, you are ready to add the Vizzly dashboard to your frontend application, or use our guide for setting up a new React project with Vizzly.