Auth0 Home Blog Docs

Choose default tab ("Sign Up" or "Log In") displayed by Lock on iOS (Auth0.swift)


#1

Hi,

is it possible on iOS to choose which tab (“Sign Up” or “Log in”) is pre-selected on the hosted Lock page? Or how can we pass the initialScreen Lock configuration option to Lock when implemented as described in this guide https://auth0.com/docs/quickstart/native/ios-swift

Auth0
    .webAuth()
    .scope("openid profile")
    .audience("https://YOUR_AUTH0_DOMAIN/userinfo")
    .start {
        switch $0 {
        case .failure(let error):
            // Handle the error
            print("Error: \(error)")
        case .success(let credentials):
            // Do something with credentials e.g.: save them.
            // Auth0 will automatically dismiss the login page
            print("Credentials: \(credentials)")
        }
}

Thanks
Filip