Package-level declarations

Types

Link copied to clipboard

Facebook login tracking mode, controlling which token the flow returns.

Link copied to clipboard

Facebook Sign in Request Scope that can be requested from user when first time user signup. You can request from user FacebookSignInRequestScope.PublicProfile and FacebookSignInRequestScope.Email

Link copied to clipboard
data class FacebookUser(val accessToken: String? = null, val nonce: String? = null)

FacebookUser class holds most necessary fields

Functions

Link copied to clipboard
fun FacebookButtonUiContainer(modifier: Modifier = Modifier, requestScopes: List<FacebookSignInRequestScope> = listOf( FacebookSignInRequestScope.PublicProfile, FacebookSignInRequestScope.Email ), onResult: (Result<FacebookUser>) -> Unit, linkAccount: Boolean = false, loginTracking: FacebookLoginTracking = FacebookLoginTracking.Limited, content: @Composable UiContainerScope.() -> Unit)

Legacy container API for Facebook Sign-In. Superseded by rememberFacebookSignInState, which returns a com.mmk.kmpauth.core.SignInState you can wire to any clickable without the receiver-scope indirection.

Link copied to clipboard
fun KMPAuth.handleFacebookActivityResult(requestCode: Int, resultCode: Int, data: Intent?)

Forwards an Activity#onActivityResult callback to the Facebook SDK.

Link copied to clipboard

Facebook Sign-In (without any backend) as a Compose state holder.

expect fun rememberFacebookSignInState(requestScopes: List<FacebookSignInRequestScope> = listOf( FacebookSignInRequestScope.PublicProfile, FacebookSignInRequestScope.Email ), linkAccount: Boolean = false, loginTracking: FacebookLoginTracking = FacebookLoginTracking.Limited, onResult: (Result<FacebookUser>) -> Unit): SignInState

Facebook Sign-In (without any backend) as a Compose state holder.

Facebook Sign-In (without any backend) as a Compose state holder.

Facebook Sign-In (without any backend) as a Compose state holder.

Facebook Sign-In (without any backend) as a Compose state holder.

Facebook Sign-In (without any backend) as a Compose state holder.