UNPKG

@privy-io/react-auth

Version:

React client for the Privy Auth API

2 lines (1 loc) 339 B
"use strict";exports.getEmbeddedConnectedWallet=function(e){return e.find((e=>"privy"===e.walletClientType&&"embedded"===e.connectorType&&!e.imported))??null},exports.getEmbeddedConnectedWalletWithAddress=function(e,t){return e.find((e=>!("privy"!==e.walletClientType||"embedded"!==e.connectorType||e.imported||t&&e.address!==t)))??null};