Package-level declarations

Types

Link copied to clipboard
data class GoogleAuthCredentials(val serverId: String)

Google Auth Credentials holder class.

Link copied to clipboard

Google Auth Provider class

Link copied to clipboard

Provider class for Google Authentication UI part. a.k.a signIn

Link copied to clipboard
data class GoogleUser(val idToken: String, val accessToken: String? = null, val email: String? = null, val displayName: String = "", val profilePicUrl: String? = null)

GoogleUser class holds most necessary fields

Functions

Link copied to clipboard
fun GoogleButtonUiContainer(modifier: Modifier = Modifier, onGoogleSignInResult: (GoogleUser?) -> Unit, content: @Composable UiContainerScope.() -> Unit)

GoogleButton Ui Container Composable that handles all sign-in functionality. Make sure you create GoogleAuthUiProvider instance using GoogleAuthProvider.create before invoking below composable function.