Google is committed to advancing racial equity for Black communities. See how.

TwitterAuthProvider

public class TwitterAuthProvider extends Object

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

Constant Summary

String PROVIDER_ID Unique string identifier for this provider type.
String TWITTER_SIGN_IN_METHOD Unique string identifier for Twitter sign-in method.

Public Method Summary

static AuthCredential
getCredential(String token, String secret)
Returns a new instance of AuthCredential that wraps a Log in with Twitter token.

Inherited Method Summary

Constants

public static final String PROVIDER_ID

Unique string identifier for this provider type.

Constant Value: "twitter.com"

public static final String TWITTER_SIGN_IN_METHOD

Unique string identifier for Twitter sign-in method.

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 a valid Log in with Twitter token (TwitterAuthToken.token), obtained from the Twitter Fabric SDK
secret a valid Log in with Twitter secret (TwitterAuthToken.secret), obtained from the Twitter Fabric SDK