loginWithProvider
About this command
Authenticate the user with a social provider (Facebook, Google…).
Refer to the Android SDK Installation to initialize the providers at the client’s instantiation.
|
Examples
import android.support.v7.app.AppCompatActivity
import com.reach5.identity.sdk.core.ReachFive
class MainActivity : AppCompatActivity() {
// List the providers created on your ReachFive client
val providers = ReachFive.getProviders()[0]
// List of the scope assigned to the user
val scope = setOf("openid", "email", "profile", "phone_number", "offline_access", "events", "full_write")
client.loginWithProvider(providers[0].name, scope, "home", this)
}