Provision to choose passCode/hash validation #6385

I dont think you should introduce auth_type, instead discover the mode automatically from available variables.

See below