configure the authentication and authorization

How can I configure the authentication and authorization flow in the Shopify React Remix cli app with the Flask backend?

I want to make API calls through Flask, but how can I authorize the API? Also, how can I track if the user is authenticated or not?