JWT support in javascript client sdk
# support
a
Is it possible to use JWT in the javascript client sdk https://github.com/VapiAI/client-sdk-html-script-tag ? As per the example on github, the vapiSDK instance can be created using const vapi = window.vapiSDK.run({ apiKey: "", // required Use your Public Key assistant: assistant, // required assistantOverrides: {}, // optional (This lets you override the assistant configuration and can be used alongside assistantId.) config: buttonConfig // optional }); I tried passing a public JWT token generated as per the docs at https://docs.vapi.ai/customization/jwt-authentication in place of apiKey and each time the vapiSDK does not gets instantiated. So is JWT only supported for webSDK or also for javascript client sdk?
k
It is only supported for webSDK.
2 Views