add cloudos auth hook into every app