modules/orionode/lib/sharedWorkspace.js
function checkCollabServerToken(authorization) {
		if (authorization.substr(0, 7) !== "Bearer ") {
			return false;
		}
		try {
			var decoded = jwt.verify(authorization.substr(7), options.configParams.get("orion.jwt.secret"));
			return true;
		} catch (ex) {
			return false;
		}
	}
function checkCollabServerToken(authorization) {
		if (authorization.substr(0, 7) !== "Bearer ") {
			return false;
		}
		try {
			var decoded = jwt.verify(authorization.substr(7), options.configParams.get("orion.jwt.secret"));
			return true;
		} catch (ex) {
			return false;
		}
	}
function checkCollabServerToken ( authorization ) { if ( authorization . substr ( 0 , 7 ) !== "Bearer " ) { return false ; } try { var decoded = jwt . verify ( authorization . substr ( 7 ) , options . configParams . get ( "orion.jwt.secret" ) ) ; return true ; } catch ( ex ) { return false ; } }
Check the JWT token for collab server
Check the JWT token for collab server