interface UserDefaultAdapterOptions {
    allowedAttachmentContentTypes?: string[];
    authEncSecret: string;
    authSignSecret: string;
    authenticate?: AuthenticationFunction;
    collectionNames?: UserDefaultAdapterCollectionNames;
    customFields?: {
        user: CustomField[];
    };
    customStrategies?: UserDefaultAdapterStrategies;
    emailConfig: UserAdapterEmailConfig;
    maxAttachmentSizeMB?: number;
    maxFailedLoginAttempts?: number;
    organizationsCanEditUsers?: boolean;
    paginationConfiguration?: PaginationConfigurations;
}

Properties

allowedAttachmentContentTypes?: string[]

List of content types that can be uploaded to attachment endpoints

authEncSecret: string

Secret use to encrypt the JWT Token

authSignSecret: string

Secret use to sign the JWT Token

authenticate?: AuthenticationFunction

Function that will be called to authenticate the user via validators. When not provided, this will default to the default for the given authType.

Typically you would only provide this if designing your own authentication.

Customizable collection name for services

customFields?: {
    user: CustomField[];
}

Custom field configuration for each data type

Type declaration

  • user: CustomField[]
customStrategies?: UserDefaultAdapterStrategies

Alternate strategies for built in logic (e.g. for password checking)

Email configuration (templates & whether to send emails)

maxAttachmentSizeMB?: number

Max file size that can be uploaded to attachment endpoints

maxFailedLoginAttempts?: number

Max number of failed attempts at login before a user is locked. 0 to disable.

organizationsCanEditUsers?: boolean

Can organizations edit users flag

paginationConfiguration?: PaginationConfigurations

Default pagination configuration for each of the list endpoints

Generated using TypeDoc