Get rid of authentication hook

We can use Flask's hooks from now on.