Fix fast polling race condition
JS adapter has the same behaviour as the python adapter if it tries to poll again before the authentication responds:
JS adapter has the same behaviour as the python adapter if it tries to poll again before the authentication responds: