ReactJs Flask authentication problem

Hi! I built a SPA ReactJs served with Flask backend with endpoints like ‘login’, ‘callback’ followed by this tutorial: https://github.com/auth0-samples/auth0-python-web-app/blob/master/01-Login/server.py

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.

Thanks!