Unbreak authentication. Fixes #39