I want to implement a web call function on frontend but want to use private key in backend. Also is using public key in frontend safe?
Or can you give me an example implementation of web call from frontend using express js backend and private key
k
Kings_big💫
06/02/2025, 9:50 AM
Use your Vapi private key securely in an Express.js backend to generate a JWT, then fetch that token on the frontend to authenticate Vapi Web SDK calls, this avoids exposing private keys while enabling secure web calls.