Interact with the Torus Network to assign, store and retrieve private keys.
Import the package:
Set the verifier details for TorusDirect depending on the login you require:
TorusDirect.setVerifierDetails( LoginType.installed.value, VerifierType.singleLogin.value, verifierName, <your-client-id>, LoginProvider.google.value, google, <your-redirect-url>);
Logins are dependent on verifier scripts/verifiers. There are other verifiers including singleIdVerifier, andAggregateVerifier, orAggregateVerifier and singleLogin of which you may need to use depending on your required logins. To get your application's verifier script setup, do reach out to firstname.lastname@example.org or to read more about verifiers do checkout the docs.
After setting your verifier, you can use TorusDirect to trigger a login:
torusLoginInfo = await TorusDirect.triggerLogin();
After this you're good to go, reach out to email@example.com to get your verifier spun up on the testnet today!