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
23 lines
398 B
JavaScript
23 lines
398 B
JavaScript
import {Base} from './Base.js';
|
|
|
|
export class BooleanT extends Base {
|
|
constructor(type) {
|
|
super();
|
|
this.type = type;
|
|
}
|
|
|
|
decode(stream, parent) {
|
|
return !!this.type.decode(stream, parent);
|
|
}
|
|
|
|
size(val, parent) {
|
|
return this.type.size(val, parent);
|
|
}
|
|
|
|
encode(stream, val, parent) {
|
|
return this.type.encode(stream, +val, parent);
|
|
}
|
|
}
|
|
|
|
export {BooleanT as Boolean};
|