clean up smart auth