I am encountering an issue while setting up Google OAuth2 credentials for integration with n8n. When I try to register the redirect URI generated by n8n (https://nedibcukang.beget.app/rest/oauth2-credential/callback), Google returns the following error:
Invalid Redirect: must use a domain that is a valid top private domain
I have verified that my domain is accessible and uses HTTPS, but Google still does not accept it as a valid redirect URI. The URI is generated automatically by n8n.
I found the issue. So there is a public suffix list which google checks. Your domain is there on line 12299. So you need to get it removed ore use a new domain to get it to work.