User is authorized in main app, and Firebase is initialized inside Today Extension:
// We check if FIRApp has already been configured with a static var, else it will crash...
if !TodayViewController.isAlreadyLaunchedOnce {
FirebaseApp.configure()
TodayViewController.isAlreadyLaunchedOnce = true
}
I've enabled Keychain Sharing as well and 2 times the currentUser property has returned the correct user but after that it always returns 'nil'
if let user = Auth.auth().currentUser
Is there something extra that should be done to make it working?
P.S. it's not related to guest user and there is not answer here: How to access current firebase user from iOS Today Extension? that's why it's not duplicate. I can't solve the problem by creating a duplicate user.
Thanks!