Never work for free!
Either cash or equity.
You should expect an equity relative to your amount of work multiplied by the median freelancer hourly rate in your region.
For example: I put in 3 months of work, that should be at least 30.000$ of value.
If the company is worth 100.000$ I expect 33% of shares in equity.
Everything else is fraud.