Sorry to hear about your difficulties.
You can stay in till you are evicted. You can't be evicted while you own the property. You also have the ability to reinstate the mortgage. This can be done up till the auction. You also have the ability to file bankruptcy, which can delay the foreclosure.
These are your rights not my recommendations. My recommendation is to bring things current if you can, if not hire a good attorney.