You no longer need to use fetchSignInMethodsForEmail as Firebase automatically returns an error if the user has already signed up or signed in with the same email. Instead, you simply need to handle the error message when trying to sign up or sign in the user, as Firebase will notify you if the email is already in use.