fixed broken apikey method after oauth refactor