rememberFirebaseAppleSignInState

actual fun rememberFirebaseAppleSignInState(requestScopes: List<AppleSignInRequestScope>, linkAccount: Boolean, onResult: (Result<FirebaseUser?>) -> Unit): SignInState

Apple Sign-In with Firebase as a Compose state holder.

Parameters are read at launch time: recomposing with new values (e.g. toggling linkAccount between sign-in and sign-up modes) updates the existing state, and SignInState.launch uses whatever is current when the user taps.

//Apple Sign-In with Custom Button and authentication with Firebase
val appleSignIn = rememberFirebaseAppleSignInState(onResult = onFirebaseResult)

Button(onClick = { appleSignIn.launch() }) { Text("Apple Sign-In (Custom Design)") }

Parameters

requestScopes

list of request scopes type of AppleSignInRequestScope.

linkAccount

boolean value to link account with existing account. Default value is false

onResult

receives the signed-in FirebaseUser or the failure.

actual fun rememberFirebaseAppleSignInState(requestScopes: List<AppleSignInRequestScope>, linkAccount: Boolean, onResult: (Result<FirebaseUser?>) -> Unit): SignInState

Apple Sign-In with Firebase as a Compose state holder.

Parameters are read at launch time: recomposing with new values (e.g. toggling linkAccount between sign-in and sign-up modes) updates the existing state, and SignInState.launch uses whatever is current when the user taps.

//Apple Sign-In with Custom Button and authentication with Firebase
val appleSignIn = rememberFirebaseAppleSignInState(onResult = onFirebaseResult)

Button(onClick = { appleSignIn.launch() }) { Text("Apple Sign-In (Custom Design)") }

Parameters

requestScopes

list of request scopes type of AppleSignInRequestScope.

linkAccount

boolean value to link account with existing account. Default value is false

onResult

receives the signed-in FirebaseUser or the failure.

actual fun rememberFirebaseAppleSignInState(requestScopes: List<AppleSignInRequestScope>, linkAccount: Boolean, onResult: (Result<FirebaseUser?>) -> Unit): SignInState

Apple Sign-In with Firebase as a Compose state holder.

Parameters are read at launch time: recomposing with new values (e.g. toggling linkAccount between sign-in and sign-up modes) updates the existing state, and SignInState.launch uses whatever is current when the user taps.

//Apple Sign-In with Custom Button and authentication with Firebase
val appleSignIn = rememberFirebaseAppleSignInState(onResult = onFirebaseResult)

Button(onClick = { appleSignIn.launch() }) { Text("Apple Sign-In (Custom Design)") }

Parameters

requestScopes

list of request scopes type of AppleSignInRequestScope.

linkAccount

boolean value to link account with existing account. Default value is false

onResult

receives the signed-in FirebaseUser or the failure.

actual fun rememberFirebaseAppleSignInState(requestScopes: List<AppleSignInRequestScope>, linkAccount: Boolean, onResult: (Result<FirebaseUser?>) -> Unit): SignInState

Apple Sign-In with Firebase as a Compose state holder.

Parameters are read at launch time: recomposing with new values (e.g. toggling linkAccount between sign-in and sign-up modes) updates the existing state, and SignInState.launch uses whatever is current when the user taps.

//Apple Sign-In with Custom Button and authentication with Firebase
val appleSignIn = rememberFirebaseAppleSignInState(onResult = onFirebaseResult)

Button(onClick = { appleSignIn.launch() }) { Text("Apple Sign-In (Custom Design)") }

Parameters

requestScopes

list of request scopes type of AppleSignInRequestScope.

linkAccount

boolean value to link account with existing account. Default value is false

onResult

receives the signed-in FirebaseUser or the failure.

expect fun rememberFirebaseAppleSignInState(requestScopes: List<AppleSignInRequestScope> = listOf( AppleSignInRequestScope.FullName, AppleSignInRequestScope.Email ), linkAccount: Boolean = false, onResult: (Result<FirebaseUser?>) -> Unit): SignInState

Apple Sign-In with Firebase as a Compose state holder.

Parameters are read at launch time: recomposing with new values (e.g. toggling linkAccount between sign-in and sign-up modes) updates the existing state, and SignInState.launch uses whatever is current when the user taps.

//Apple Sign-In with Custom Button and authentication with Firebase
val appleSignIn = rememberFirebaseAppleSignInState(onResult = onFirebaseResult)

Button(onClick = { appleSignIn.launch() }) { Text("Apple Sign-In (Custom Design)") }

Parameters

requestScopes

list of request scopes type of AppleSignInRequestScope.

linkAccount

boolean value to link account with existing account. Default value is false

onResult

receives the signed-in FirebaseUser or the failure.