Best way to handle timeout?



I am wondering what would be the best approach to handling a log in time out?

Say the user has been now waiting for 12+ seconds without a successful login, does the Twitter SDK have a time out error that will return, or should a manual break be included that suspends the login after X amount of time?