Connect to Blocto Wallet
Connecting to wallet is being called authentication or authn in FCL
Last updated
Was this helpful?
Connecting to wallet is being called authentication or authn in FCL
Last updated
Was this helpful?
Make sure you have set the configuration in 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
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.
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.