Giving Subs free access to my app?

I develop mobile apps using React Native for Ios and Android and I’m using the default tabs template from Expo. Like most apps, accounts are free but premium features are extra. What I’m curious about is syncing the 2, so if someone subscribes to my channel, it would unlock premium features in the app, but if their channel subscription expires so would their premium features in the app.
Best practices or general advice appreciated.