Delete user accounts in your Express app. The module is part of Lockit.
npm install lockit-delete-account
var DeleteAccount = ;var utils = ;var config = ;var db = utils;var adapter = config;var app = ;// express settings// ...// sessions are required - either cookie or some sort of dbapp;app;// create new DeleteAccount instancevar deleteAccount = config adapter;// use deleteAccount.router with your appapp;
More about configuration at Lockit.
If you've set
exports.rest in your
config.js the module behaves as follows.
next()ed and you can catch
/delete-accounton the client
POST /rest/delete-accountstays the same but sends JSON