Yes it is possible. You will need to save your database in a container that you can use:
- (NSURL *)containerURLForSecurityApplicationGroupIdentifier:(NSString *)groupIdentifier;
The parameter groupIdentifiermust be the same for all applications and must be configured inside Target-> Capabilities-> application groups.
After you have configured the same application group for each application, you can use the above method to save the database in the location provided by the method. Thus, the same database would be available for all applications.
There is an NSUserDefaults init methid that accepts a username (appGroup) and creates generic UserDefaults that can be used for your sole login purpose.
- (instancetype)initWithSuiteName:(NSString *)suitename;
Cm:
containerURLForSecurityApplication
NSUserDefaults