UNPKG

@qelos/auth

Version:

Express Passport authentication service

8 lines (7 loc) 291 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getRequestHost = void 0; function getRequestHost(req) { return (req.headers.tenanthost || req.headers.host || new URL(req.headers.origin).host).split(':')[0]; } exports.getRequestHost = getRequestHost;