2f741df97b
Implement a connectionId for each user, each time a user try to validate we change their connectionId and end all other connections of that user.
18 lines
595 B
JavaScript
18 lines
595 B
JavaScript
import { Meteor } from 'meteor/meteor';
|
|
import mapToAcl from '/imports/startup/mapToAcl';
|
|
import validateAuthToken from './methods/validateAuthToken';
|
|
import setEmojiStatus from './methods/setEmojiStatus';
|
|
import assignPresenter from './methods/assignPresenter';
|
|
import changeRole from './methods/changeRole';
|
|
import removeUser from './methods/removeUser';
|
|
|
|
Meteor.methods(mapToAcl(['methods.setEmojiStatus', 'methods.assignPresenter', 'methods.changeRole',
|
|
'methods.removeUser'], {
|
|
setEmojiStatus,
|
|
assignPresenter,
|
|
changeRole,
|
|
removeUser,
|
|
}));
|
|
|
|
Meteor.methods({ validateAuthToken });
|