Represents the Twitter authentication provider. Use this class to obtain TwitterAuthCredential
s.
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.
public static final String TWITTER_SIGN_IN_METHOD
Unique string identifier for Twitter sign-in method.
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
FirebaseAuth.signInWithCredential(AuthCredential)
or
FirebaseUser.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 |