跳至內容
從 NextAuth.js v4 遷移?請閱讀 我們的遷移指南.

實體

AccountEntity

建構函式

new AccountEntity(undefined)

new AccountEntity(): AccountEntity
傳回值

AccountEntity

屬性

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

建構函式

new SessionEntity(undefined)

new SessionEntity(): SessionEntity
傳回值

SessionEntity

屬性

expires

expires: string;

id

id: string;

sessionToken

sessionToken: string;

user

user: UserEntity;

userId

userId: string;

UserEntity

建構函式

new UserEntity(undefined)

new UserEntity(): UserEntity
傳回值

UserEntity

屬性

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

建構函式

new VerificationTokenEntity(undefined)

new VerificationTokenEntity(): VerificationTokenEntity
傳回值

VerificationTokenEntity

屬性

expires

expires: string;

id

id: string;

identifier

identifier: string;

token

token: string;
Auth.js © Balázs Orbán 及團隊 -2024