UNPKG

@privy-io/js-sdk-core

Version:

Vanilla JS client for the Privy Auth API

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