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

utils

parseDataSourceConfig()

parseDataSourceConfig(configOrString): DataSourceOptions

Ensure configOrString is normalized to an object.

Parameters

ParameterType
configOrStringstring | DataSourceOptions

Returns

DataSourceOptions


updateConnectionEntities()

updateConnectionEntities(dataSource, entities): Promise<void>

Parameters

ParameterType
dataSourceDataSource
entitiesany[]

Returns

Promise<void>

Auth.js © Balázs Orbán and Team - 2024