Fix issue with auth handler
Fixes #13