ReactJs Flask authentication problem

Hi! I built a SPA ReactJs served with Flask backend with endpoints like ‘login’, ‘callback’ followed by this tutorial:

I’m trying to figure out what is the right way to reach these Flask endpoints in order to Login. Currently, I tried to reach the ‘/login’ endpoint, but having trouble handle the redirect response.

Can someone please assist? I didn’t see any “how-to” for my case.