Socket
Book a DemoInstallSign in
Socket

lockit-delete-account

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lockit-delete-account

delete account middleware for lockit

1.0.5
latest
Source
npmnpm
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

Lockit delete account

Build Status NPM version Dependency Status

Delete user accounts in your Express app. The module is part of Lockit.

Installation

npm install lockit-delete-account

var DeleteAccount = require('lockit-delete-account');
var utils = require('lockit-utils');
var config = require('./config.js');

var db = utils.getDatabase(config);
var adapter = require(db.adapter)(config);

var app = express();

// express settings
// ...
// sessions are required - either cookie or some sort of db
app.use(cookieParser());
app.use(cookieSession({
  secret: 'this is my super secret string'
}));

// create new DeleteAccount instance
var deleteAccount = new DeleteAccount(config, adapter);

// use deleteAccount.router with your app
app.use(deleteAccount.router);

Configuration

More about configuration at Lockit.

Features

  • input validation
  • match public phrase
  • session verification
  • kill current session
  • remove user from db

Routes included

  • GET /delete-account
  • POST /delete-account

REST API

If you've set exports.rest in your config.js the module behaves as follows.

  • all routes have /rest prepended
  • GET /rest/delete-account is next()ed and you can catch /delete-account on the client
  • POST /rest/delete-account stays the same but sends JSON

Test

grunt

License

MIT

Keywords

lockit

FAQs

Package last updated on 06 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.