Generate wallet in background - avoid the redirection to beta.openlogin.com #449
Replies: 2 comments 2 replies
-
Hey @yurayavorski Thanks for your question and sorry for the delay in responding to this thread. With Web3Auth, you get 2 basic options, Web3Auth Plug and Play and Web3Auth Self Host. In terms of integration, Web3Auth Plug and Play is much easier and doesn't need much effort from the end user, as compared with Web3Auth Self Host, which is quite technical in terms of integration. In Web3Auth Plug and Play, we've basically integrated the off-chain multi-sig part of Web3Auth into openlogin.com. This helps the user to generate their MFA setups, which is not possible without this part existing. This is enabled us to just directly call the app within the SDK and do the key reconstruction there. You can check out the articles about the User Flows and How Web3Auth Works to understand this better. In all, the redirect ensures that the keys are reconstructed on the frontend, ie. on openlogin.com and not on any other backend, ensuring the non-custodiality of the system. In Web3Auth Self Host, your app can directly integrate the off-chain multi-sig aspect, enabling you login without any redirections and the key reconstruction happens in your app as well. You can even play around with the share storage and accordingly choose what suits your users the best. Ideally, this approach is the best way to integrate Web3Auth, however, this takes an considerable engineering effort as compared to Web3Auth Plug and Play. All this being said, after looking into this question from multiple community members, we thought of a middle way around both these SDKs and give you an example which can, to an extent surpass the redirection for certain users using the one key flow. In this example we have explored this hack, where we check whether the user has enabled MFA or not, and accordingly reconstruct their key using the particular library. We also have added an option for someone to enable MFA later on after they have logged in. We'll be adding a guide talking about each and every library, why it is imported and what it does and how the whole flow works very soon and update here as well. Let me know for any questions. |
Beta Was this translation helpful? Give feedback.
-
Hey Altair,
I would recommend you contact web3Auth and ask them where did they move
this repository as it is just deleted from the github.
Best regards
…On Thu, May 18, 2023 at 6:11 PM Altair ***@***.***> wrote:
Hey @yashovardhan <https://github.com/yashovardhan>,
I landed on this thread because we have a similar requirement as the
author.
But when I tried to access the example you have linked, it said the link
isn't valid anymore.
Could you help me out here ?
In this example we have explored this hack, where we check whether the
user has enabled MFA or not, and accordingly reconstruct their key using
the particular library. We also have added an option for someone to enable
MFA later on after they have logged in.
https://github.com/Web3Auth/examples/tree/main/web-core-sdk/one-key-flow
Thanks a bunch.
—
Reply to this email directly, view it on GitHub
<#449 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGHO37WNRYCWEPAS3HRVJXTXGY3ZJANCNFSM57G67LMQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I'm using web3auth with our own JWT token from Cognito and UX is really bad. After user is signed in to our system (e.g. logged in with Google) they are landed on our page, then second redirection happens to
beta.openlogin.com
which takes a while (some time up to 6-8 seconds). Is there a way to avoid redirection to beta.openlogin.com, but generate the wallet in the background (e.g. with async http requests)?Beta Was this translation helpful? Give feedback.
All reactions