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

@auth/remult-adapter

RemultAdapter()

RemultAdapter(args): {
  adapter: Adapter;
}

Parameters

ParameterTypeDescription
argsObject-
args.customEntities?Object-
args.customEntities.Account?ClassType<Account>-
args.customEntities.Authenticator?ClassType<Authenticator>-
args.customEntities.Session?ClassType<Session>-
args.customEntities.User?ClassType<User>-
args.dataProviderDataProvider | Promise<DataProvider> | () => Promise<undefined | DataProvider>-
args.ensureSchema?booleanWill create tables and columns in supporting databases. default: true

Description
when set to true, it’ll create entities that do not exist, and add columns that are missing.
args.userDbToSession?(user?) => null | AdapterUser-

Returns

{
  adapter: Adapter;
}

adapter

adapter: Adapter;
Auth.js © Balázs Orbán and Team - 2024