UNPKG

@privy-io/js-sdk-core

Version:

Vanilla JS client for the Privy Auth API

2 lines (1 loc) 280 B
"use strict";var e=require("./getAllUserEmbeddedEthereumWallets.js");exports.shouldCreateEmbeddedEthWallet=(t,l)=>!("off"===l||e.getAllUserEmbeddedEthereumWallets(t).length>0||t.linked_accounts.filter((e=>"wallet"===e.type&&"ethereum"===e.chain_type)).length>0&&"all-users"!==l);