TwitterAuthProvider

class TwitterAuthProvider


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

Summary

Constants

const String!
PROVIDER_ID = "twitter.com"

Unique string identifier for this provider type.

const String!
TWITTER_SIGN_IN_METHOD = "twitter.com"

Unique string identifier for Twitter sign-in method.

Public functions

java-static AuthCredential
getCredential(token: String, secret: String)

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

Constants

PROVIDER_ID

const val PROVIDER_ID = "twitter.com": String!

Unique string identifier for this provider type.

TWITTER_SIGN_IN_METHOD

const val TWITTER_SIGN_IN_METHOD = "twitter.com": String!

Unique string identifier for Twitter sign-in method.

Public functions

getCredential

java-static fun getCredential(token: String, secret: String): AuthCredential

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

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