I am implementing server side oauth for google youtube api.
I am not able to understand why is redirect uri needed for a server side oauth.
The application gets the token and flow remains on my server. Internet suggest to put localhost just to make it work, I get it but why?