Both answers are correct but now Yahoo doesn't allow you to sign in to other apps directly, when you try method described in the answers yahoo will say that .