Add afterAuth to authkitMiddleware function
#294
+39
−8
authkitMiddleware function
#294