bigbluebutton-Github/bigbluebutton-html5/imports/api/auth-token-validation/index.js
2023-02-27 13:50:15 +00:00

21 lines
450 B
JavaScript

import { Meteor } from 'meteor/meteor';
const collectionOptions = Meteor.isClient ? {
connection: null,
} : {};
const AuthTokenValidation = new Mongo.Collection('auth-token-validation', collectionOptions);
if (Meteor.isServer) {
AuthTokenValidation._ensureIndex({ connectionId: 1 });
}
export const ValidationStates = Object.freeze({
NOT_VALIDATED: 1,
VALIDATING: 2,
VALIDATED: 3,
INVALID: 4,
});
export default AuthTokenValidation;