ComposeAuth
Plugin that extends the Auth Module with composable function that enables an easy implementation of Native Auth. Currently supported Google Login (Android with OneTap or CM on Android 14+) and Apple Login (iOS), other compose-supported targets rely on GoTrue login.
To use it, install GoTrue and ComposeAuth
val client = createSupabaseClient(supabaseUrl, supabaseKey) {
install(GoTrue) {
//your config here
}
install(ComposeAuth) {
googleNativeLogin(/* your config parameters here */)
appleNativeLogin(/* your config parameters here */)
}
}
then on you screen call
val action = auth.rememberSignInWithGoogle(
onResult = {
// returns NativeSignInResult
},
fallback = {
// optional: only add fallback if you like to use custom fallback
}
)
Button(
onClick = {
action.startFlow()
}
) {
Text(text = "Google Login")
}
Types
Config for ComposeAuth
Functions
Composable of default behavior if Native Auth is not supported on the platform
Composable function that implements Native Apple Auth.
Composable function that implements Native Apple Auth.
Composable for Apple login with default behavior
Composable function that implements Native Google Auth.
Composable function that implements Native Google Auth.
Composable function that implements Native Google Auth.