TwitterAuthProvider

classTwitterAuthProvider


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

Summary

Constants

constString!
PROVIDER_ID = "twitter.com"

Unique string identifier for this provider type.

constString!
TWITTER_SIGN_IN_METHOD = "twitter.com"

Unique string identifier for Twitter sign-in method.

Public functions

java-staticAuthCredential
getCredential(token: String, secret: String)

Returns a new instance ofAuthCredential 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 ofAuthCredential that wraps a Log in with Twitter token. Used when callingsignInWithCredential orlinkWithCredential.

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

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.