INNER CODE UNIT · JavaScript

resolveInlineGuard

3cqs-coder/SymBot · libs/webserver/Hub/index.js:38

	const resolveInlineGuard = () => {
		if (inlineGuarded === null) {
			try {
				const RP = shareData && shareData.RoutePermissions;
				inlineGuarded = (RP && typeof RP.buildInlineGuardMatcher === 'function')
					? RP.buildInlineGuardMatcher(router)
					: function () { return false; };
			}
			catch (e) { inlineGuarded = function () { return false; }; }
		}
		return inlineGuarded;
	};

	const sessionExpireMins = 60 * 24;
	const sessionCookieName = 'SymBotHub';

	const hashPassword = crypto.createHash('sha256').update(shareData.appData.password).digest('hex');

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…