Couldn’t verify JWT / JWT Expired
# support
z
This message started showing out of no where whenever starting a call, how to solve this? Tried logging out and in again and used incognito tab but still same. https://cdn.discordapp.com/attachments/1367619986431938660/1367619986637455494/IMG_9031.jpg?ex=68153edd&is=6813ed5d&hm=8b4204b2ff6d900dfcc1bf5036b8a86495b29e4d38bad3684ec35a0b794f6fe9&
v
# Check your JWT token expiration and regenerate if needed The most common cause of this error is an expired JWT token. To fix this:
Copy code
javascript
// Generate a new JWT token with appropriate expiration
const jwt = require('jsonwebtoken');
const token = jwt.sign({ 
  // your payload here
}, privateKey, { expiresIn: '1h' });
Make sure you're using the correct private key (not public key) and include the token in your requests with
Authorization: Bearer {token}
. Sources: - [JWT Authentication Documentation](https://docs.vapi.ai/customization/jwt-authentication) - [Discord Support Thread](https://discord.com/channels/1211482211119796234/1333897284894724188)
Same problem
h
same problem
s
@User @Vapi Support Bot same problem.
v
# Regenerate Your JWT Token Since multiple users are experiencing this issue simultaneously, it may be a temporary service problem. Try regenerating your JWT token with a longer expiration time:
Copy code
javascript
const jwt = require('jsonwebtoken');
const token = jwt.sign({ 
  orgId: process.env.ORG_ID
}, process.env.PRIVATE_KEY, { expiresIn: '24h' });
Ensure you're using the correct private key in PEM format and including the token in your requests with
Authorization: Bearer ${token}
. Sources: - [Discord Support Thread](https://discord.com/channels/1211482211119796234/1333897284894724188) - [JWT Authentication Documentation](https://docs.vapi.ai/customization/jwt-authentication)
t
Where do you correct this issue? I’m having the same problem
Has anyone figured out how to solve this?
c
Sorry to hear about that. We should have fixed JWT tokens in the daily channel today. Please test it out and see if it has fixed. Also make sure you are on the 'daily' update channel and not the 'weekly' one.
c
What is the 'daily channel' is that one of the discord channels
c
On the VAPI dashboard, go to the left panel > Org settings > Channel dropdown and there should be a weekly and daily option. Let me know if you have trouble finding it
2 Views