Interface AuthJsAdapterOptions

Where the adapter keeps its tables, and how it makes ids.

interface AuthJsAdapterOptions {
    tablePrefix?: string;
    generateId?: (() => string);
}

Properties

tablePrefix?: string

Put before each table name: <prefix>users, <prefix>accounts, <prefix>sessions, <prefix>verification_tokens. Default auth_.

generateId?: (() => string)

Makes a user or account id when Auth.js passes none. Default: crypto.randomUUID().