integration refactoring

Why don't you pass the clientId and code to the authorization repository to verify the authorization? In this way you will remove this comparison here.