Skip to main content

Interface: AdapterAccount

adapters.AdapterAccount

An account is a connection between a user and a provider.

There are two types of accounts:

  • OAuth/OIDC accounts, which are created when a user signs in with an OAuth provider.
  • Email accounts, which are created when a user signs in with an Email provider.

One user can have multiple accounts.

Hierarchy​

Properties​

provider​

• provider: string

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

Inherited from​

Account.provider


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

Inherited from​

Account.providerAccountId