A verifier is a unique identifier for your OAuth registration on the torus network. The Public/private keys generated for a user are scoped to a verifier.
Please contact us to get a verifier deployed for you.
VerifierId is the unique identifier to publicly represent a user on a verifier.
e.g: email, sub etc. other fields can be classified as VerifierId
Torus has two environments where the verifiers reside -
testnet is a sandbox environment for developers to experiment. People usually
test and finish their integration here.
mainnet is prod environment.
iOS Chrome doesn't support service workers. So, you need to serve a fallback
redirect.html Please check if redirect.html is being served
correctly by navigating to
baseUrl/redirect#a=123. It should show a loader
For nginx, here is a simple server configuration
Alternatively, you can configure your redirect url to include redirect.html by
passing in an option
redirectPathName: 'redirect.html' while instantiating the
sdk. Please remember to change the oauth redirect url to reflect this change
Torus Login requires a new token for every login attempt. Discord returns the same access token for 30 min unless it's revoked. Unfortunately, it needs to be revoked from the backend since it needs a client secret. Here's some sample code which does it
One can use privateKeyToAccount method to initialise web3 with a privatekey. If you are supplying a hexadecimal number, it must have 0x prefix in order to be in line with other Ethereum libraries.