Open deepakdumraliya opened 1 year ago
Hey @deepakdumraliya - thanks for the issue!
Thanks so much for sharing the link to your app. I could easily tell what is going on.
The "Invalid Access Token issuer/subject" error means that the Video SDK does not recognize the Twilio Account SID (subject) or API Key SID (issuer) of the token that the custom API is returning. This doesn't mean that the token is bad though.
I see that REACT_APP_TWILIO_ENVIRONMENT: "dev"
is set in you .env
file, which will direct our SDK to connect to our 'dev' servers instead of our 'prod' servers. The Account SID that issued the token does not exist in our 'dev' servers. Our 'dev' servers are just for internal use, so your app should always be connecting to the 'prod' servers. To do this, just remove REACT_APP_TWILIO_ENVIRONMENT: "dev"
from your .env
file and the SDK will default to the 'prod' servers.
Please let me know how this works out for you!
Discussed in https://github.com/twilio/twilio-video-app-react/discussions/748