Skip to content

warting/firebase-compose

Repository files navigation

Maven Central

Firebase Compose

A set of Compose components to make it easier to use firebase in the composable world

Firebase Compose Auth

A jetpack compose module to deal with firebase authentication

How to include in your project

The library is available via MavenCentral:

allprojects {
    repositories {
        // ...
        mavenCentral()
    }
}

Add it to your module dependencies:

dependencies {
    implementation("se.warting.firebase-compose:auth:<latest_version>")
}
Snapshots of the development version are available in Sonatype's snapshots repository.

Sonatype Nexus (Snapshots) Sonatype Nexus (Snapshots) Sonatype Nexus (Snapshots) Sonatype Nexus (Snapshots) Sonatype Nexus (Snapshots)

allprojects {
    repositories {
        // ...
        maven {
            url 'https://oss.sonatype.org/content/repositories/snapshots/'
        }
    }
}

How to use

All you need to do is to call FirebaseComposeAuth:

    FirebaseComposeAuth(
        loggedInContent = { LoggedIn() },
        loggedOutContent = { LoggedOut() }
    )

For a full implementation see: Full sample

Notes

You must install and initiate firebase in your app before using this

About

Firebase Compoe friendly lib

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •