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 @NonNull AuthCredential

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 @NonNull AuthCredential getCredential(@NonNull String token, @NonNull String secret)

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

Parameters
@NonNull String token

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

@NonNull String secret

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