Skip to content

Instantly share code, notes, and snippets.

@arulwastaken
Last active August 7, 2025 12:52
Show Gist options
  • Save arulwastaken/85e1e394a34aa434c0de9641cdf8e520 to your computer and use it in GitHub Desktop.
Save arulwastaken/85e1e394a34aa434c0de9641cdf8e520 to your computer and use it in GitHub Desktop.
GoogleAuthProvider.kt Used inside Jetpack Composable and GoogleAuthenticator used for trigger action
package com.codingwitharul.bill_it.common.auth
import com.codingwitharul.bill_it.common.model.GoogleUser
import com.codingwitharul.bill_it.domain.repo.AuthRepo
expect class GoogleAuthenticator {
suspend fun login(): Result<GoogleUser?>
}
package com.codingwitharul.bill_it.common.auth
import androidx.compose.runtime.Composable
import com.codingwitharul.bill_it.common.auth.GoogleAuthenticator
expect class GoogleAuthProvider {
@Composable
fun getUiProvider(): GoogleAuthenticator
suspend fun signOut()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment