Skip to content
Migrating from NextAuth.js v4? Read our migration guide.

entities

AccountEntity

Constructors

new AccountEntity(undefined)

new AccountEntity(): AccountEntity
Returns

AccountEntity

Properties

access_token

access_token: null | string;

expires_at

expires_at: null | number;

id

id: string;

id_token

id_token: null | string;

provider

provider: string;

providerAccountId

providerAccountId: string;

refresh_token

refresh_token: null | string;

scope

scope: null | string;

session_state

session_state: null | string;

token_type

token_type: null | string;

type

type: string;

user

user: UserEntity;

userId

userId: string;

SessionEntity

Constructors

new SessionEntity(undefined)

new SessionEntity(): SessionEntity
Returns

SessionEntity

Properties

expires

expires: string;

id

id: string;

sessionToken

sessionToken: string;

user

user: UserEntity;

userId

userId: string;

UserEntity

Constructors

new UserEntity(undefined)

new UserEntity(): UserEntity
Returns

UserEntity

Properties

accounts

accounts: AccountEntity[];

email

email: null | string;

emailVerified

emailVerified: null | string;

id

id: string;

image

image: null | string;

name

name: null | string;

sessions

sessions: SessionEntity[];

VerificationTokenEntity

Constructors

new VerificationTokenEntity(undefined)

new VerificationTokenEntity(): VerificationTokenEntity
Returns

VerificationTokenEntity

Properties

expires

expires: string;

id

id: string;

identifier

identifier: string;

token

token: string;
Auth.js © Balázs Orbán and Team - 2024