This code has been moved to: https://github.com/zapier/zapier-platform/tree/master/example-apps/session-auth
A barebones app that has shows how to do a session authentication scheme of using a username/password exchange and then placed in the header.
We recommend using the zapier-platform-cli and
zapier init . --template=session-auth
to create an app.