score:0

try {
    await validateUser(user);
    //success to validate
} catch(error) {
    //validate error(failed to validate)
}

Related Query

More Query from same tag