"use strict";var e=require("react"),t=require("./context-rs-ygOK2.js"),r=require("./internal-context-CdsQ3LEl.js");exports.useSignWithUserSigner=()=>{let{walletProxy:i,initializeWalletProxy:s,client:a}=r.usePrivyInternal();return e.useMemo((()=>({signWithUserSigner:async({message:e,targetAppId:r})=>{let n=i??await s(t.WALLET_PROXY_TIMEOUT);if(!n)throw Error("Wallet proxy not initialized");let l=await a.getAccessToken();if(!l)throw Error("User must be authenticated");let{signature:o}=await n.signWithUserSigner({accessToken:l,message:e,targetAppId:r});return{signature:o}}})),[i,a])};
//# sourceMappingURL=use-sign-with-user-signer-BhoaqeNG.js.map
