diff --git a/inc/Core/OAuth/OAuth2Handler.php b/inc/Core/OAuth/OAuth2Handler.php index c72ece2cb..c3366fad6 100644 --- a/inc/Core/OAuth/OAuth2Handler.php +++ b/inc/Core/OAuth/OAuth2Handler.php @@ -399,6 +399,8 @@ public function handle_callback( } // Include PKCE code_verifier in token exchange if one was stored. + $token_params['code'] = $code; + $verifier = $this->get_pkce_verifier( $provider_key, $state ); if ( null !== $verifier ) { $token_params['code_verifier'] = $verifier;