feat: add torus auth method#161
Conversation
License: MIT Signed-off-by: Vaibhav Saini <vasa@towardsblockchain.com>
|
You may need to tweak the |
|
Hi there @aaronbarnardsound. Would love to get this merged in, got several dapps keen on using blocknative with us in the pipeline. Let me know what we can do to help! @vasa-develop Thanks for the PR, appreciate it |
|
Thank you @vasa-develop for the PR. @YZhenY we are taking a look and expect to merge early next week. (We're a little slower last and this week due to holiday schedules). |
|
@vasa-develop @YZhenY I will be checking this out today, will keep you updated. |
|
@vasa-develop The Torus implementation is looking pretty good. I took the opportunity to refactor some of the interfaces to allow more flexibility when adding wallets as it was needed in this PR for it all to work nicely. I sorted out the @YZhenY There is one problem I am having with Torus, when the |
|
@YZhenY Have you had a chance to have a look at the logout issued mentioned above? |
|
@aaronbarnardsound been swamped with our recent release. will find time take a look at this today |
|
@iamonuwa could you look into this |
|
Right away. Thanks |
| let result = await instance.login({ verifier: loginMethod }) | ||
| return { message: result[0] } | ||
| }, | ||
| disconnect: () => instance.logout(), |
There was a problem hiding this comment.
@aaronbarnardsound use await instance.cleanUp()
There was a problem hiding this comment.
Sweet will try that now. Thanks!
Added Torus as a default auth method for mobile and desktop browsers.
This enables a user to log in with their Google, Facebook, Twitch, Reddit or Discord account via
bnc-onboardwidget.Here is an awesome preview:

License: MIT
Signed-off-by: Vaibhav Saini vasa@dappkit.io