Package Exports
- @toruslabs/torus-direct-web-sdk
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@toruslabs/torus-direct-web-sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
torus-direct-web-sdk
This repo allows web applications to directly retrieve keys stored on the Torus Network. The attestation layer for the Torus Network is generalizable, below is an example of how to access keys via the SDK via Google.
To allow your web app to retrieve keys:
- Install the package
npm i torus-direct-web-sdk
Instantiate the package with your own specific client-id
import TorusSdk from "@toruslabs/torus-direct-web-sdk"; const torus = new TorusSdk({ typeOfLogin: "google", verifier:"google-MY SPECIFIC VERIFIER", GOOGLE_CLIENT_ID: "MY CLIENT ID GOOGLE", proxyContractAddress: "0x4023d2a0D330bF11426B12C6144Cfb96B7fa6183", // details for test net network: "ropsten" // details for test net });
triggerLogin()
Reach out to hello@tor.us to get your verifier spun up on the testnet today!