Custom forgot password form + Add redirect_uri to change-password flow

Thank you. I’m trying an alternate solution, which is to run the user through the email auth with a redirect_uri to the reset password page. Now the issue I have is finding the connection value. The only api endpoint that I could find in the docs is /tokeninfo which is deprecated & no longer provided to new accounts.

Is there another way to find the connection value from the token? Would /userinfo provide a way to determite the connection?