How Do I: Recreate or pass a refresh token to the @vonage/server-sdk instance of to any api call (ex: vonage.voice.createOutboundCall)? #974
Labels
question
Question about how to use the SDK
waiting-for-reporter
Waiting for response from the reporter
How do I
recreate the instance/pass refresh token if the session expires. If I get 401 unauthorised or session expired error.
API/Product
Voice
Code Sample
I'm making an outgoing call utilising the
@vonage/server-sdk
. I have a server that runs around the clock, and as soon as the instance is started, calls are processed continuously. According to the documentation, Voice user JWT has a maximum expiration time of 24 hours and a minimum expiration time of 15 minutes (I am unable to see the issue for session expiry). In the event that the session ends, I would like to know how to recreate the instance or token. Additionally, you must be aware of where to handle the instance's dynamic creation or pass the token.The code that I have referred is from the make-call.js
The text was updated successfully, but these errors were encountered: