Since Congress passed the Bankruptcy Abuse Prevention and Consumer Protection Act of 2005, both federal and private student loans are more difficult to discharge in bankruptcy than other types of debt. However, they can still be discharged if the borrower can prove the loan causes undue hardship.