BalajiN | Using wait for rather than local action to solve auth issues