export function shouldWarnAboutInsecureAuthContext(securityContext) {
    return !securityContext.isSecureContext;
}
export function getAuthOriginRecommendation(location) {
    const host = location.host || location.hostname;
    const pathname = location.pathname || '';
    if (location.hostname.toLowerCase() === '0.0.0.0') {
        const localhostHost = host.replace(/^0\.0\.0\.0/i, 'localhost');
        return `http://${localhostHost}${pathname}`;
    }
    return `https://${host}${pathname}`;
}
//# sourceMappingURL=origin-security.js.map