AuthService handleAuthentication does not redirect unless timeout is given