Set Timeout login if our connection is bad

Is there any way to set timeout facebook login using ionic native facebook login? thanks before