Refactor for auth header