The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/auth > TwitterAuthProvider > credential

TwitterAuthProvider.credential() method

Creates a credential for Twitter.

Signature:

static credential(token: string, secret: string): OAuthCredential;

Parameters

Parameter Type Description
token string Twitter access token.
secret string Twitter secret.

Returns:

OAuthCredential