I am trying to understand the subsciptionStatus logic in stripe.ts

I am just wondering what could be the reason we don't want to update subscriptionStatus as soon as chekcout.session.completed along with hasPaid and subscriptionTier (line 46 and 48).
I am writing a logic where after a user sign up for subscription with subscription_data.trial_periods_days , I then check whether a subscription is active or not, and re-direct them to the hidden page like so:

on DemoAppPage.tsx:
image.png
image.png
image.png
Was this page helpful?