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

xata

XataClient

Extends

Constructors

new XataClient(options)

new XataClient(options?): XataClient
Parameters
ParameterType
options?BaseClientOptions
Returns

XataClient

Overrides

DatabaseClient<DatabaseSchema>.constructor


NextauthAccount

Properties

access_token?

optional access_token: null | string;

expires_at?

optional expires_at: null | number;

id_token?

optional id_token: null | string;

provider?

optional provider: null | string;

providerAccountId?

optional providerAccountId: null | string;

refresh_token?

optional refresh_token: null | string;

scope?

optional scope: null | string;

session_state?

optional session_state: null | string;

token_type?

optional token_type: null | string;

type?

optional type: null | string;

user?

optional user: null | NextauthUserRecord;

NextauthSession

Properties

expires?

optional expires: null | Date;

sessionToken?

optional sessionToken: null | string;

user?

optional user: null | NextauthUserRecord;

NextauthUser

Properties

email?

optional email: null | string;

emailVerified?

optional emailVerified: null | Date;

image?

optional image: null | string;

name?

optional name: null | string;

NextauthUsersAccount

Properties

account?

optional account: null | NextauthAccountRecord;

user?

optional user: null | NextauthUserRecord;

NextauthUsersSession

Properties

session?

optional session: null | NextauthSessionRecord;

user?

optional user: null | NextauthUserRecord;

NextauthVerificationToken

Properties

expires?

optional expires: null | Date;

identifier?

optional identifier: null | string;

token?

optional token: null | string;

DatabaseSchema

type DatabaseSchema: {
  nextauth_accounts: NextauthAccount;
  nextauth_sessions: NextauthSession;
  nextauth_users: NextauthUser;
  nextauth_users_accounts: NextauthUsersAccount;
  nextauth_users_sessions: NextauthUsersSession;
  nextauth_verificationTokens: NextauthVerificationToken;
};

Type declaration

nextauth_accounts

nextauth_accounts: NextauthAccount;

nextauth_sessions

nextauth_sessions: NextauthSession;

nextauth_users

nextauth_users: NextauthUser;

nextauth_users_accounts

nextauth_users_accounts: NextauthUsersAccount;

nextauth_users_sessions

nextauth_users_sessions: NextauthUsersSession;

nextauth_verificationTokens

nextauth_verificationTokens: NextauthVerificationToken;

NextauthAccountRecord

type NextauthAccountRecord: NextauthAccount & XataRecord;

NextauthSessionRecord

type NextauthSessionRecord: NextauthSession & XataRecord;

NextauthUserRecord

type NextauthUserRecord: NextauthUser & XataRecord;

NextauthUsersAccountRecord

type NextauthUsersAccountRecord: NextauthUsersAccount & XataRecord;

NextauthUsersSessionRecord

type NextauthUsersSessionRecord: NextauthUsersSession & XataRecord;

NextauthVerificationTokenRecord

type NextauthVerificationTokenRecord: NextauthVerificationToken & XataRecord;
Auth.js © Balázs Orbán and Team - 2024