TwitterAuthProvider

public class TwitterAuthProvider


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

Summary

Constants

static final String
PROVIDER_ID = "twitter.com"

Unique string identifier for this provider type.

static final String
TWITTER_SIGN_IN_METHOD = "twitter.com"

Unique string identifier for Twitter sign-in method.

Public methods

static @NonNullAuthCredential

Returns a new instance of AuthCredential that wraps a Log in with Twitter token.

Constants

PROVIDER_ID

public static final String PROVIDER_ID = "twitter.com"

Unique string identifier for this provider type.

TWITTER_SIGN_IN_METHOD

public static final String TWITTER_SIGN_IN_METHOD = "twitter.com"

Unique string identifier for Twitter sign-in method.

Public methods

getCredential

public static @NonNullAuthCredential getCredential(@NonNullString token, @NonNullString secret)

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

Parameters
@NonNullString token

a valid Log in with Twitter token (TwitterAuthToken.token), obtained from the Twitter Fabric SDK

@NonNullString secret

a valid Log in with Twitter secret (TwitterAuthToken.secret), obtained from the Twitter Fabric SDK