All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.plusmobileapps.firebase.auth.AuthState.kt Maven / Gradle / Ivy

Go to download

A kotlin multiplatform mobile library for authenticating with Firebase for Android, iOS, and JVM

The newest version!
package com.plusmobileapps.firebase.auth

import com.plusmobileapps.firebase.auth.model.FirebaseUser

sealed class AuthState {
    val isAuthenticated: Boolean
        get() = this is Authenticated

    data class Authenticated(
        val firebaseUser: FirebaseUser,
        val idToken: String,
        val expiresAt: String,
    ) : AuthState()

    object Unauthenticated : AuthState()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy