Google Sign Out - MLSDev/LiveDataSocialAuth GitHub Wiki
With the GoogleAuth
Call the signOut() method in the GoogleAuth object. The observable value is Status
googleAuth.logOut()
.observe(this, Observer { status ->
if (it.success) {
// The user has been signed out
} else {
// Show the [status.message] if needed
// Do your stuff on error
}
})
With the SocialAuthManager
socialAuthManager.signOut(this).observe(this, Observer { status ->
if (it.success) {
// The user has been signed out
} else {
// Show the [status.message] if needed
// Do your stuff on error
}
})
this represents the LifecycleOwner