Custom OAuth2 Provider with PKCE

I read your doc on creating a custom Oauth2 provider, but the provider we are using requires PKCE. I see Auth0 supports PKCE between our App and Auth0, but I don’t see where/how I can setup PKCE to be used against a third party Oauth2 provider.

Any ideas on how to use PKCE with a custom Oauth2 provider?