diff --git a/includes/openid-connect-generic-client.php b/includes/openid-connect-generic-client.php index 2749c75..50c0a0c 100644 --- a/includes/openid-connect-generic-client.php +++ b/includes/openid-connect-generic-client.php @@ -127,7 +127,7 @@ class OpenID_Connect_Generic_Client { */ function get_token_response( $token_result ){ if ( ! isset( $token_result['body'] ) ){ - return new WP_Error( 'missing-token-body', __( 'Missing token body.' ), $token_response ); + return new WP_Error( 'missing-token-body', __( 'Missing token body.' ), $token_result ); } // extract token response from token @@ -333,4 +333,4 @@ class OpenID_Connect_Generic_Client { function get_subject_identity( $id_token_claim ){ return $id_token_claim['sub']; } -} \ No newline at end of file +}