This is a simple Node.js example that demonstrates how to set and retrieve custom metadata
when generating a Secure Anonymous Token (SAT).
This script is referenced in Frame's Secure Anonymous Token documentation, found here: https://docs.frame.nutanix.com/frame-apis/auth/auth-with-sat.html
Note: This example uses Axios for fetching endpoints.
- Frame account with API credentials
- Secure Anonymous Token Provider
- Node.js
- Install axios with
npm i axios
- Edit index.js to supply your Frame API credentials and Secure Anonymous Token provider endpoint URL. Save your changes.
- Run the script with
node index.js
. You should see a token and the specified metadata logged to the console.
If you have any questions, comments, or run into any problems, please reach out by creating a new case/ticket in the My Nutanix portal.