🧑‍💻 Modal Control

close()

When you call this method, the opened modal of Face Wallet is closed. So, you can control the modal of Face Wallet in your Dapp.

import { Face, Network } from '@haechi-labs/face-sdk';

const face = new Face({
  network: Network.GOELRI, 
  apiKey: 'YOUR_DAPP_API_KEY'
});

// When a modal of Face Wallet is opened with login or home method, you can close the modal.
face.wallet.close();