@chatally/consent-manager

0.0.2 • Public • Published

@chatally/consent-manager

ChatAlly Consent Manager middleware to comply with GDPR requirements.

The consent manager should be added to a ChatAlly application as one of the first middleware modules, to check, if the sender of an incoming request has consented to automatic processing of their data. If not, the sender is asked for consent before processing continues.

Consent data is persisted in a local SQLite database.

This package is meant to be used within a ChatAlly chatbot application.

Usage

Install the package

npm install @chatally/consent-manager

Use the middleware

// index.js
import { ConsoleServer } from '@chatally/console'
import { Application } from '@chatally/core'
import { content } from '@chatally/utils'
import { ConsentManager } from '@chatally/consent-manager'

const app = new Application({ log: false })

app //
  .use(new ConsoleServer('Bot'))
  .use(new ConsentManager())
  .use(({ req, res }) => {
    res.write(`You said: ${content(req)}`)
  })
  .listen()

Documentation

Find the full documentation at https://chatally.org/reference/middleware/consent-manager/.

Package Sidebar

Install

npm i @chatally/consent-manager

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

9.66 kB

Total Files

9

Last publish

Collaborators

  • shackhacker-christian