-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hi guys, i'm trying to use Mirage's validator but did not called. I follow the documentation's example, like:
/* Requires ...*/
const options = {
'mirage timeout': process.env.PRIMUS_SESSION_ID_TIMEOUT,
authorization : authorizationHandler
};
/* Class begin */
/* Code inside constructor*/
this.primus = new Primus(this.server, options);
this.primus.plugin('mirage', Mirage);
this.primus.id.validator(function validator(spark, fn) {
console.log('validator');
fn(undefined, 'foo');
});Generator and timeout works correctly. Any idea?
Regards,
Metadata
Metadata
Assignees
Labels
No labels