This may help, it has an example pizauth config (scroll down to "Authenticating with pass and pizauth"):
https://stuff.sigvaldason.com/email.html