I integrate an google OAuth 2.0 on my nodejs web application and I setup origin and authorized redirect URIs on google cloud platform , when I try to signin with google on local everything goes fine but when I switch my app to production I changed the origin and authorized redirect URIs with domains of frontend and backend but it gives me this error :{"success":false,"error":"Unauthorized"}, please is there any solution for this issue ?
. locally
origin URIs: http://localhost:8000
authorized redirect URIs : http://localhost:8000/auth/google/callback
. In production
origin URIs: https://www.example-backend.com
authorized redirect URIs :https://www.example-backend.com/auth/google/callback