Connect to Blocto Wallet
Connecting to wallet is being called authentication or authn in FCL
Make sure you have set the configuration in Wallet Discovery first.
By connecting to a wallet, a user's Flow account address can be retrieved. There are two different ways to connect a wallet:
Simple login: Retrieve account address without account proof data
Account-proof login: Retrieve account address with account proof data
Account proof data can be used to prove a user controls an on-chain account
Simple Login
Account-proof Login
If a dApp asks the user for authentication with account proof data, the user will be asked to approve signing a message. It will return user's flow account address with AccountProofData
which can be used to prove the ownership of a Flow account.
Verify Account Proof
FCL has a utility function called verifyAccountProof()
. It can be used to verify a signature against a Flow account given the account address.
The first parameter of verifyAccountProof()
, appIdentifier
, is identical to AccountProofResolvedData
's appIdentifier.
Last updated