"use strict";var t=require("./errors-CBapWvRs.js"),r=require("./paths-DizMb-lU.js");exports.FarcasterFramesFlow=class{async init(){if(!this.api)throw new t.PrivyClientError("Auth flow has no API instance");let{nonce:i,expires_at:e}=await this.api.post(r.initFarcasterV2Path,{});return{nonce:i,expiresAt:e}}async authenticate(){if(!this.message||!this.signature||!this.fid)throw new t.PrivyClientError("Auth flow has no message, signature, or fid");if(!this.api)throw new t.PrivyClientError("Auth flow has no API instance");try{let i=await this.api.post(r.authenticateFarcasterV2Path,{message:this.message,signature:this.signature,fid:this.fid});if(!i)throw new t.PrivyClientError("No response from authentication");return i}catch(r){throw t.formatApiError(r)}}async link(){throw Error("Not implemented")}setAuthData({message:t,signature:r,fid:i}){this.message=t,this.signature=r,this.fid=i}constructor(){this.meta={}}};
//# sourceMappingURL=frame-BHa-PKpX.js.map
