Pack auth api

Closes #684