Abstract and error classes for implementing visa-passport's backend API.
Install the module with: npm install visa-passport-extend
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.
var util = require('util'),
Backend = require('visa-passport-extend');
function MyAwesomeBackend(...) {
Backend.call(this);
}
util.inherits(MyAwesomeBackend, Backend);
Copyright (c) 2014 BJR Matos <https://github.com/borismcr9/> Licensed under the MIT license.