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
15 lines
544 B
JavaScript
15 lines
544 B
JavaScript
var base64 = require('base64-js');
|
|
|
|
/**
|
|
* The normal dictionary-data.js is quite large, which makes it
|
|
* unsuitable for browser usage. In order to make it smaller,
|
|
* we read dictionary.bin, which is a compressed version of
|
|
* the dictionary, and on initial load, Brotli decompresses
|
|
* it's own dictionary. 😜
|
|
*/
|
|
exports.init = function() {
|
|
var BrotliDecompressBuffer = require('./decode').BrotliDecompressBuffer;
|
|
var compressed = base64.toByteArray(require('./dictionary.bin.js'));
|
|
return BrotliDecompressBuffer(compressed);
|
|
};
|