fixed authentication hook
3.0.8