Replies: 2 comments 6 replies
-
Hey @hazim-j This is done to make sure that an application only has access to the corresponding share to the private key of their application's user. Hence, to use dApp Share, one has to use the custom authentication feature of Web3Auth.
Also, the dApp Share is only returned to users who have enabled 2FA to their account. To get dapp share in Android, one has to initialise web3auth like below: web3Auth = Web3Auth (
Web3AuthOptions (
context = this,
clientId = getString (R.string.web3auth_project_id),
network = Web3Auth.Network.MAINNET,
redirectUrl = Uri.parse ("{YOUR_APP_PACKAGE_NAME}://auth"),
// Optional loginConfig object
loginConfig = hashMapOf("google" to LoginConfigItem(
verifier = "verifier-name", // get it from web3auth dashboard
typeOfLogin = TypeOfLogin.GOOGLE,
name = "Custom Google Login",
clientId = getString(R.string.web3auth_google_client_id) // google's client id
))
)
) Web3Auth issues a dApp Share in the response, ie. a backup share, that can be stored by the app developer directly within their application and used to reconstruct the private key after successful login by the user. See https://web3auth.io/docs/sdk/android/dapp-share#example to know more on how to use dapp share in subsequent logins. |
Beta Was this translation helpful? Give feedback.
-
Hi, first of thanks for asking this question, So before biting the bullet to answer why dappShare is returned for custom verifiers and how dapps can use this share, I will make some effort to describe what verifier is and what is the difference between custom and default verifiers.
Now coming to dapp share:-What is a dapp share?Dapp Share:-
Why dapp share is required at all?
Let's consider a login scenario:-
How does dapp get access to dapp share?
Why dapp share is issued only for custom verifiers?
I hope this answers your question, feel free to shoot any further queries. |
Beta Was this translation helpful? Give feedback.
-
Hi! I'm currently building a mobile wallet and looking for some clarification about the dApp share (https://web3auth.io/docs/dapp-share)
At the bottom of the doc it says
dappShare is only available for custom verifiers and not the standard web3auth verifiers
but the reasoning is a bit vague. Could anyone help me better understand why this is the case?Beta Was this translation helpful? Give feedback.
All reactions