17 lines
364 B
JavaScript
17 lines
364 B
JavaScript
import { Meteor } from 'meteor/meteor';
|
|
|
|
const AuthTokenValidation = new Mongo.Collection('auth-token-validation');
|
|
|
|
if (Meteor.isServer) {
|
|
AuthTokenValidation._ensureIndex({ meetingId: 1, userId: 1 });
|
|
}
|
|
|
|
export const ValidationStates = Object.freeze({
|
|
NOT_VALIDATED: 1,
|
|
VALIDATING: 2,
|
|
VALIDATED: 3,
|
|
INVALID: 4,
|
|
});
|
|
|
|
export default AuthTokenValidation;
|