Install
Create a client
Use a token provider
Use a function when your token can expire.Use custom headers by default
Node.js fetch notes
The SDK usesglobalThis.fetch by default.
- On Node.js versions with native fetch, you do not need extra setup.
- If your runtime has no global fetch, pass one: