Skip to content

[DEPRECATED] Abstract and error classes for implementing visa-passport's backend API.

Notifications You must be signed in to change notification settings

bjrmatos/visa-passport-extend

Repository files navigation

visa-passport-extend

Abstract and error classes for implementing visa-passport's backend API.

Dependencies

Install

Install the module with: npm install visa-passport-extend

Usage

This module exports an abstract Backend class and error classes (NotOverrideError, InvalidArgumentsError, RuleExistsError).

The Backend class is intended to be subclassed when implementing concrete backend class. Once implemented, such classes can be used by applications that utilize visa-passport middleware for authorization.

Subclass Backend

var util = require('util'),
    Backend = require('visa-passport-extend');

function MyAwesomeBackend(...) {
  Backend.call(this);
}

util.inherits(MyAwesomeBackend, Backend);

License

MIT

Copyright (c) 2014 BJR Matos <https://github.com/borismcr9/> Licensed under the MIT license.

About

[DEPRECATED] Abstract and error classes for implementing visa-passport's backend API.

Resources

Stars

Watchers

Forks

Packages

No packages published