Is there a way to keep your home after a sheriffs auction?

Yes. You must pay off the debt in full and get a deed from the person who purchased the property at the sheriff's sale. That deed must be recorded immediately.