fixed issue with new auth workflow