I want that the user should be redirected to the pricing page when their trial period of 14 days expires.
I have created a Expiration date field in User data type which is Current date/time + (days):14 and this is saved in the sign up flow. In the login flow, I have created a condition which navigates to the pricing page if the Current user’s expiration date < Current date time otherwise it navigates to the homepage. This is working fine.
I am having trouble with setting up a condition on all the pages that when they load, it should be checked if the user is in the trial period or not as I don’t logout the users.
This is how I have set it up but it navigates to the pricing page even when the trial period has not expired. What am I doing wrong?