we are working on a flutter app that uses firebase authentication and each user has his own unique user id , first we setup the revenuecat on the lunch of the app using this
await Purchases.setup("public_sdk_key");
secondly when the user logs in we use its unique user id in :
await Purchases.logIn(uuid);
thirdly and when the user logs out we use
await Purchases.logOut();
is this the best practice and how can we handle if the user terminated his subscription while using the app