I want to setup a service which is accessible from AWS Amplify, that acts as a proxy service to AWS Cognito. The point being, that such a service would provide greater flexibility, along with the option of swapping Cognito out, further down the road, for an alternative identity provider (like, say Okta).
With this in mind, is it possible to configure AWS Amplify to use a different endpoint than the default used for Cognito/Auth (i.e. currently this is hardcoded to https:/ /cognito-ipd.<region>.amazonaws.com)
If not, can you think of a workaround?
Note: there does not appear to be anything obvious in the docs (https://docs.amplify.aws/lib/client-configuration/configuring-amplify-categories/q/platform/js/#top-level-configuration)