I have some error like this "Expression implicitly coerced from String?
to Any
" this is my code :
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
FIRApp.configure()
FIRAuth.auth()?.signIn(withEmail: "myemail@gmail.com", password: "mypassword", completion: { (user, error) in
if (error != nil) {
print(user?.email)
}else {
print(error?.localizedDescription)
}
})
return true
}
Error in this line
print(user?.email)
And
print(error?.localizedDescription)
Please help me