I've never had a prof insert my work into their own papers, they've hooked me up to contribute to other teams, but with us it was always "my" project.
If you get a chance to see them present at a conference (lots of these are on video online nowadays), check if they specifically mention their students in the presentation, that's a green flag.