Thread
#compose
    Brian Mahecha

    Brian Mahecha

    1 year ago
    Afternoon everyone; any existing references for getting Firebase auth (google sign in) to work with Compose? Currently trying to do as much of it I can in the activity like usual and then pass the result/credential to the composable.. Just a little confusing on what the expected/best practice is to pass that login result around. Should it be a flag passed to my viewModel for that screen, a conditional in the
    startDestination
    of my navGraph? Any input would be appreciated.
    Colton Idle

    Colton Idle

    1 year ago
    Login result should likely affect some kind of application state that you have. In terms of how to setup logged in vs logged out screens, Ian Lake has mentioned that it works the same as fragment land. See the navigation login case study at 4:50

    https://youtu.be/09qjn706ITA

    Jeff

    Jeff

    1 year ago
    Check out this great article by @Eric Ampire [MOD] https://ericampire.com/firebase-auth-with-jetpack-compose