Skip to main content

Interface: Account

types.Account

Usually contains information about the provider being used and also extends TokenSet, which is different tokens returned by OAuth Providers.

Hierarchy​

  • Partial<OpenIDTokenEndpointResponse>

    ↳ Account

Properties​

provider​

• provider: string

id of the provider used for this account


providerAccountId​

• providerAccountId: string

This value depends on the type of the provider being used to create the account.

  • oauth: The OAuth account's id, returned from the profile() callback.
  • email: The user's email address.
  • credentials: id returned from the authorize() callback

type​

• type: ProviderType

Provider's type for this account


userId​

• Optional userId: string

id of the user this account belongs to.