The following works for me
const newConfirmation = await auth.signInWithPhoneNumber(phoneNumber, true);
The second argument is a forceResend flag. The offical document.