getAllCategories with access token check