Code parameter in redirect URL does not exist

Hi, i have a huge problem how to get the code parameter in URL redirects. I get everything excluding code param. I have searched the internet and i can see a lot of people have similiar issue, i have tried everything, using different templates, creating new stores and registering a new apps. Is there any known solution to this problem?

Thanks.