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

    ↳↳ AdapterAccount

Properties​

provider​

• provider: string

Provider's id for this account. Eg.: "google"


providerAccountId​

• providerAccountId: string

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

  • oauth/oidc: 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