Shared authentication between apps


#1

Hello guys,
I’m sorry if this is a silly question… I know it’s not really a nativescript question but it certainly requires me to know which android and ios internal apis can be used to accomplish this tasks.

Maybe someone has already implemented a solution like this and could guide me in the right direction?

**Currently I’m building 3 distinct apps. **
**User should be able to navigate between those apps if they were a single app. In order to do this I would like to share the authentification token so the user won’t need to identify himself on every single app. **

Is this possible? Which apis should I look at to accomplish this?

Thank you in advance.


#2

An easiest way is, when you open the other app using Intent or URL scheme, you may pass the auth token too. Let the app being opened shall read it.

Or save the encrypted token in Filesystem, keep it accessible by other apps.

Or use Keychain / Content Providers (Android only).


#3

I took a look at URL schemes and they might be the way to go. :slight_smile:
I’ll give it a try. Thank you for the suggestion @manojdcoder