I need to share some particular data among two separate apps on android, preferably make some kind of shared folder which can be accessed by both the apps only.
Why? I need a single sign on functionality between two separate apps.
Till now I have been authenticating users using JWT tokens by storing them in sharedpreferences (storing them to maintain the signin) and clearing the shared prefs when the user logs out (along with hitting the api which changes the token).
Now I have another app which works with the same token.
What's required: you sign into one and another one automatically signs in. So, my plan is to store the token on the device which in turn can be accessed by both the apps.
I know I will need an active directory for a secure SSO but I am okay with not having a 100% security as of now, the question still remains about how to share data among apps.
isSignedIn, update it, during signing in and signing out. With that, you can check for the key while opening up the app, whether the user is signed in other devices or not. Let me know if that helps or you don't get the idea