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

Methods

getConfig()

getConfig(): Promise<{
  branch: string;
  databaseURL: string;
}>
Returns

Promise<{ branch: string; databaseURL: string; }>

branch
branch: string;
databaseURL
databaseURL: string;
Inherited from

DatabaseClient.getConfig


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: NextauthAccountRecord;
  nextauth_sessions: NextauthSessionRecord;
  nextauth_users: NextauthUserRecord;
  nextauth_users_accounts: NextauthUsersAccountRecord;
  nextauth_users_sessions: NextauthUsersSessionRecord;
  nextauth_verificationTokens: NextauthVerificationTokenRecord;
};

Type declaration

nextauth_accounts

nextauth_accounts: NextauthAccountRecord;

nextauth_sessions

nextauth_sessions: NextauthSessionRecord;

nextauth_users

nextauth_users: NextauthUserRecord;

nextauth_users_accounts

nextauth_users_accounts: NextauthUsersAccountRecord;

nextauth_users_sessions

nextauth_users_sessions: NextauthUsersSessionRecord;

nextauth_verificationTokens

nextauth_verificationTokens: NextauthVerificationTokenRecord;

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