Skip to content

Documentation / react-auth / Twitter

Interface: Twitter

Object representation of a user's Twitter account.

Extended by

Properties

name

name: null | string

The name associated with the Twitter account.


profilePictureUrl

profilePictureUrl: null | string

The profile picture URL associated with the Twitter account. Note that the Twitter image URL returned is appended with _normal to return a 48x48px image. In order to retrieve the original-sized image, remove the _normal from the URL as specified in the Twitter API docs: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/user-profile-images-and-banners


subject

subject: string

The sub claim from the Twitter-issued JWT for this account.


username

username: null | string

The username associated with the Twitter account.