TwitterAuthProvider

public classTwitterAuthProvider


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

Summary

Constants

static finalString
PROVIDER_ID = "twitter.com"

Unique string identifier for this provider type.

static finalString
TWITTER_SIGN_IN_METHOD = "twitter.com"

Unique string identifier for Twitter sign-in method.

Public methods

static @NonNullAuthCredential

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

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

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.