The Earnin app offers a feature known as Balance Shield. If you enable the Balance Shield for your account, Earnin will automatically provide you with a loan if it believes that your bank account balance is about to drop into the negative.