I’ve narrowed it down to this =>
function verify() { …
wp_set_current_user( $user_id );
wp_set_auth_cookie( $user_id );
…}
in the core.php file. when i comment out these two lines, it forces the user to login. How can I add a wc notice here that the user needs to login to complete verification?