Monday, 2 January 2023

Firebase Email Link with Nav Compose

I have a Firebase authentication flow where the user is asked to confirm his/her email to finish its authentication phase. It's an email link process.

So far, I've successfully managed to redirect the link to the right screen in the application with a NavGraphBuilder.

My question for now is: according to the documentation, I need to Verify link and sign in the user, but how should I configure the arguments for the path of the composable at that entry point so I can fetch the received data?

    composable(
            route = "...",
            deepLinks = listOf(
                navDeepLink {
                    uriPattern = "https://<APPLICATION_ID>.firebaseapp.com"
                    action = Intent.ACTION_VIEW
                }
            )
            arguments = listOf(
                navArgument("..."){
                    type = ...
                    defaultValue = ".."
                }
            )
        ){...}
``


from Firebase Email Link with Nav Compose

No comments:

Post a Comment