Google Sign Out - MLSDev/LiveDataSocialAuth GitHub Wiki
GoogleAuth
With theCall 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
}
})
SocialAuthManager
With thesocialAuthManager.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