When I present the authViewController, it displays a screen with a button to 'Sign in with phone'. Is it possible to bypass this screen, and go straight to the 'Enter Phone Number' screen?
Specs:
let authUI = FUIAuth.defaultAuthUI()
// You need to adopt a FUIAuthDelegate protocol to receive callback
authUI?.delegate = self
authUI?.isSignInWithEmailHidden = true
let providers: [FUIAuthProvider] = [
FUIPhoneAuth(authUI:FUIAuth.defaultAuthUI()!)
]
authUI?.providers = providers
let authViewController = authUI?.authViewController()
self.present(authViewController!, animated: true) { }
@pete183 Yes, here is my objective-c code snippet:
FUIAuth *auth = [FUIAuth defaultAuthUI];
auth.delegate = self;
FUIPhoneAuth *phoneAuth = [[FUIPhoneAuth alloc] initWithAuthUI:auth];
auth.providers = @[phoneAuth];
[phoneAuth signInWithPresentingViewController:viewController];
Swift
let auth = FUIAuth.defaultAuthUI()
auth?.delegate = self
let phoneAuth = FUIPhoneAuth(authUI: auth!)
auth?.providers = [phoneAuth]
phoneAuth.signIn(withPresenting: self)
update for swift 3.1
let auth = FUIAuth.defaultAuthUI()
auth?.delegate = self as? FUIAuthDelegate
let phoneAuth = FUIPhoneAuth(authUI: auth!)
auth?.providers = [phoneAuth]
phoneAuth.signIn(withPresenting: self)
Most helpful comment
Swift