UNPKG

@privy-io/js-sdk-core

Version:

Vanilla JS client for the Privy Auth API

2 lines (1 loc) 200 B
"use strict";exports.getCrossAppAccountByWalletAddress=(s,e)=>s.linked_accounts.filter((s=>"cross_app"===s.type)).find((({embedded_wallets:s,smart_wallets:t})=>[...s,...t].some((s=>s.address===e))));