Service Provider in tKey
is used for generating a social login share of the private key share managed by a wallet service provider via
their own authentication flows.
npm install --save @tkey/service-provider-sfa
See the full SDK Reference on the Web3Auth Documentation
import SFAServiceProvider from '@tkey/service-provider-sfa';
const web3AuthOptions: any = {
clientId, // Get your Client ID from Web3Auth Dashboard
web3AuthNetwork: 'testnet', // ["cyan", "testnet", "mainnet", "aqua", "sapphire_devnet", "sapphire_mainnet"]
};
const serviceProvider = new SFAServiceProvider({web3AuthOptions});