Here’s where I need it:
try {
await updatePassword(user, password);
} catch (e) {
if (e instanceof AuthError) {
setErrorMessage(e.message);
}
}
The reason it’s failing is because AuthError
is just an interface exported from the ‘firebase/auth’ module not an actual Error subclass.