what is this: Update your server-side token genera...
# ask-ai
l
what is this: Update your server-side token generator to use the new API key/secret, then deploy that token-generator change.
t
Thanks for reaching out, James. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You're being asked to change the backend code that creates LiveKit access tokens so it signs them with your new API key and secret, then redeploy that backend so the change takes effect. What to do, succinctly: 1. Locate your server-side token generator (the code that creates JWTs /
AccessToken
for LiveKit). 2. Replace the old credentials with the new API key and secret—preferably via environment variables (e.g.,
LIVEKIT_API_KEY
/
LIVEKIT_API_SECRET
) rather than hardcoding. 3. Redeploy your backend so it starts issuing tokens signed with the new secret. Why this matters: • LiveKit tokens must be signed with the current API secret. Tokens generated with the old secret will be rejected, preventing clients from connecting. If you want, tell me: • which language or SDK your token-generator uses (Node/TS, Go, Python, etc.), and I’ll show the exact code snippet to update. Sources: Authentication | LiveKit docs | LiveKit Server Platform | livekit/livekit_composite | DeepWiki | Generating tokens | LiveKit docs