Implementation of User Authentication and Recognizing Subscription Management from Wordpress in Thunkable

I am in the process of creating an Android application using Thunkable for my website, abxathletes.com. The website operates on WordPress and utilizes the MemberPress plugin for subscription management. The subscriptions are divided into three categories: Beginner, Intermediate, and Advanced, with each category offering three types of plans: 30 days, 60 days, and 90 days.

My primary goal is to enable users to log into the application using their existing accounts created on abxathletes.com. It is important to note that users will not have the ability to register directly through the app, but only to authenticate their accounts. Upon logging in, users should have access to workout sessions based solely on the subscription they purchased on the website.

For example, if a user named John Doe purchases a Beginner subscription for 30 days, he should be able to log into the app and access only the Beginner training category. Conversely, if John Doe decides not to renew his subscription after the 30 days, he should no longer be able to log into the app, effectively losing access until his subscription is renewed. In such cases, the application should display a constant error message: “Access Denied: Please renew your subscription.”

My question is how to implement this same level of security in Thunkable, ensuring that if a user purchases a 90-day subscription for Beginners, they cannot access Intermediate or Advanced workouts. Additionally, if the user fails to renew their subscription after the 90 days, they should also lose access to the app.

So far i have reached here using the sample login page made by thunkable, but removed the original option for account registration.

Thank you for your assistance.

Problem is that if i try to login it’s not working. And If i do manage to login it’s working even if i don’t type email or password, and the inside security mentioned above is not working to not be allowed to use other categories apart from what you purchased.

Hello @modiga.paul2845ra8a
You can see a good example of the “sign in” function in this tutorial: https://www.youtube.com/watch?v=aFL8iQCmPkM

Regarding the subscriptions and the plans, you can save the user’s plan and expiration date on Firebase and check that inside the app using cloud variable blocks.

“Could you please offer me an example? I’m really a beginner in this situation, and even with the video tutorial, I feel confused. I don’t know how to make the Realtime Database read the subscriptions purchased on the website abxathletes.com. After that, I want the Thunkable app to be able to read the data inside the Realtime Database. Also, I have no idea what rules I should use in the Realtime Database, as whatever I try ends up blocking the Thunkable app from accessing the data.”

Hi @modiga.paul2845ra8a ,
I checked the website and it seems that it has a sign-in feature.
Why do you need to use Firebase?
I think it will be easier to connect the app only with WordPress API.