Skip to content

Instantly share code, notes, and snippets.

@iamonuwa
Last active January 31, 2020 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamonuwa/c595d9b46575a7987503e1e56c0c802b to your computer and use it in GitHub Desktop.
Save iamonuwa/c595d9b46575a7987503e1e56c0c802b to your computer and use it in GitHub Desktop.
Login with torus without npm
<html>
<head>
<title>Torus</title>
</head>
<body>
<script
src="https://app.tor.us/v0.2.12/embed.min.js"
integrity="sha384-lSiHcwUwWc+IymcuPXKXIJNrAdqA69cjnB7L8VWHlSI99WbNqzM3yLzQD/M9m2jq"
crossorigin="anonymous"
>
var torus = new Torus({
buttonPosition: "top-left"
});
torus.init({
buildEnv: "production",
enableLogging: true,
network: {
host: "kovan",
chainId: 42,
networkName: "Kovan Test Network"
},
showTorusButton: false
});
torus.login();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment