Client side preauth framework