Improvements to the AuthToken authentication scheme.