Constructor to initialize the A8Connect Container
Current available wallets that A8Connect supports.
Current user session is initially set as null. After connecting wallet/login action, the currentSession will be available.
Init options for UID container.
Root node
Root node selector id
The function to close modal.
The function to destroy root node.
The function to restore session if possible, can be fail-safe.
Normally the function won't connect if user has disconnected the wallet from DApp.
Enable forceConnectWallet to bypass and try to connect regardless the wallet is connected or not.
The function to init the A8Connect session. The session will be updated whenever connecting wallet/login actions occur.
Initialize registry and session.
The function to initialize root node.
Initialize root selector
Construct session
The function to check whether the wallet state is valid
The function to be triggered after the authentication to grab the current session user.
The function to be triggered to grab the current connected wallet.
The function to be triggered whenever use disconnected wallet.
The function to be triggered whenever use logged out from the current UID session.
The function to open the UID modal
The function to replace credential. Call this function to remove the old credential and replace with a new one. Set parameter to null to delete current credential.
Generated using TypeDoc
A8Connect object class. The Ancient8 authentication will be handled and the session will be persisted inside this object.