Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
window.provider = async (config) => {
const torus = new Torus.default();
await torus.init();
await torus.setProvider(config.provider.network);
return torus.provider;
}