public class

TwitterAuthProvider

extends Object
java.lang.Object
   ↳ com.google.firebase.auth.TwitterAuthProvider

Class Overview

Represents the Twitter authentication provider. Use this class to obtain TwitterAuthCredentials.

Summary

Constants
String PROVIDER_ID Unique string identifier for this provider type.
Public Methods
static AuthCredential getCredential(String token, String secret)
Returns a new instance of AuthCredential that wraps a Log in with Twitter token.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String PROVIDER_ID

Unique string identifier for this provider type.

Constant Value: "twitter.com"

Public Methods

public static AuthCredential getCredential (String token, String secret)

Returns a new instance of AuthCredential that wraps a Log in with Twitter token. Used when calling signInWithCredential(AuthCredential) or linkWithCredential(AuthCredential).

Parameters
token String: a valid Log in with Twitter token (TwitterAuthToken.token), obtained from the Twitter Fabric SDK
secret String: a valid Log in with Twitter secret (TwitterAuthToken.secret), obtained from the Twitter Fabric SDK
Returns
AuthCredential