6989a98d75
- Arkitektur: docs/auth/passwordless-architecture.md - Backend: iom/quixzoom-auth-service/ (FastAPI + Redis) - Webb: quixzoom-market-pages/se/login/ (QR-kod + polling) - App: iom/quixzoom-app/src/features/auth/ (push + deep links) Flöde: QR-kod → app-godkännande → webb-inloggad
13 lines
526 B
JavaScript
13 lines
526 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.enumToMap = enumToMap;
|
|
function enumToMap(obj, filter = [], exceptions = []) {
|
|
const emptyFilter = (filter?.length ?? 0) === 0;
|
|
const emptyExceptions = (exceptions?.length ?? 0) === 0;
|
|
return Object.fromEntries(Object.entries(obj).filter(([, value]) => {
|
|
return (typeof value === 'number' &&
|
|
(emptyFilter || filter.includes(value)) &&
|
|
(emptyExceptions || !exceptions.includes(value)));
|
|
}));
|
|
}
|