Redirect uri for multiple subdomains

The alternative to registering multiple applications is to use a single redirect URI, which will then forward you to the desired domain using the state parameter.