interface ChatDefaultAdapterOptions {
    allowedAttachmentContentTypes?: string[];
    authEncSecret: string;
    authSignSecret: string;
    authenticate?: AuthenticationFunction;
    customFields?: {
        message?: CustomField[];
        subscription?: CustomField[];
        topic?: CustomField[];
    };
    maxAttachmentSizeMB?: number;
    paginationConfiguration?: PaginationConfigurations;
}

Properties

allowedAttachmentContentTypes?: string[]

The allowed authorized redirect urls for social login

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 bearer authentication (security.defaultBearerAuth)

Typically you would only provide this if designing your own authentication or using cookie auth via security.defaultCookieAuth.

customFields?: {
    message?: CustomField[];
    subscription?: CustomField[];
    topic?: CustomField[];
}

Custom field configuration per data type

Type declaration

  • Optional message?: CustomField[]
  • Optional subscription?: CustomField[]
  • Optional topic?: CustomField[]
maxAttachmentSizeMB?: number

Max file size that can be uploaded to attachment endpoints

paginationConfiguration?: PaginationConfigurations

Default pagination configuration for each of the list endpoints

Generated using TypeDoc