any bank or other entity that takes over a property typically takes the property with the tenants and subject to what the interest in the tenant is in the property (long term lease, month to month tenancy, etc.). the bank can't just throw you out but if you've been on a month to month tenancy, which is very common, the bank can provide a 30 day notice to vacate just like you could provide the bank with a 30 day notice that you are vacating and the tenancy is then over.