I am building an app and I have a question regarding the authentication flow. Following the official React App tutorial, I have created a method getSubscriptionUrl that will redirect clients to the screen to create a subscription. That the tutorials does not mention is that this flow will be executed every time the merchant launches the app and he will have to see the subscription screen everytime. What is the usualy approach to handling this? Checking if there is an existing subscription and skipping the subscription step or there is something better that is built-in?
Here is my server.js code and getSubscriptionUrl is the last method that is executed.