There was a law that was passed in 2009 which states requires that the immediate new owner of a foreclosed home:
â€¢ provide tenants with 90 days notice prior to eviction and
â€¢ allow bona fide tenants with leases to occupy the property until the end of the lease term except the lease can be terminated on 90 days notice if the unit is sold to a purchaser who will occupy the property.
The only exception is if the new owner of the home will occupy the home (like someone who buys it with the intention to live in it), then a shorter eviction time period can be given to the existing tenant (you).
The link in the web reference is a free "Renters in Foreclosure Toolkit" with a lot of good reading which I feel you should go over in order to educate yourself for this time in your life.
I hope you are able to stay as long as you legally can and are able to find a new place to live just as nice as where you live now.