Closed rocheston closed 4 years ago
sudo node server.js /home/-------/node_modules/opentok/lib/opentok.js:79 throw new Error('Invalid arguments when initializing OpenTok: apiKey=' + apiKey + ', apiSecret=' + apiSecret); ^
Error: Invalid arguments when initializing OpenTok: apiKey=undefined, apiSecret=undefined
at new OpenTok (/home/------/node_modules/opentok/lib/opentok.js:79:11)
at Object.
Copy the .env.example
to .env
and then add your details there if you're running locally. If you're using Glitch, you can set the environment variables through the web interface. Hope that helps .... let us know?
I'm going to close this for now but please get in touch if you need anything more from us!
Where to add these? Which file. Please give instructions to add apikey and apisecret