Made the app use the new API for the auths middleware.