20 lines
394 B
JavaScript
20 lines
394 B
JavaScript
'use strict';
|
|
|
|
const Command = require('../../command');
|
|
|
|
/**
|
|
* Base authentication plugin
|
|
*/
|
|
class PluginAuth extends Command {
|
|
constructor(resolve, reject, multiAuthResolver) {
|
|
super(resolve, reject);
|
|
this.multiAuthResolver = multiAuthResolver;
|
|
}
|
|
|
|
successSend(packet, out, opts, info) {
|
|
this.multiAuthResolver(packet, out, opts, info);
|
|
}
|
|
}
|
|
|
|
module.exports = PluginAuth;
|