Replaced TOTP with cap key

- Replaced TOTP with an implementation of a cap key to better align with
  Tahoe's way of handling user / data.
This commit is contained in:
Rodrigo Pinto 2024-12-01 00:23:21 -03:00
commit 22e8576cab
10 changed files with 161 additions and 116 deletions

View file

@ -7,13 +7,6 @@ settings:
importers:
.:
dependencies:
'@paulmillr/qr':
specifier: ^0.3.0
version: 0.3.0
otpauth:
specifier: ^9.3.5
version: 9.3.5
devDependencies:
'@sveltejs/adapter-auto':
specifier: ^3.0.0
@ -208,13 +201,6 @@ packages:
'@jridgewell/trace-mapping@0.3.25':
resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==}
'@noble/hashes@1.5.0':
resolution: {integrity: sha512-1j6kQFb7QRru7eKN3ZDvRcP13rugwdxZqCjbiAVZfIJwgj2A65UmT4TgARXGlXgnRkORLTDTrO19ZErt7+QXgA==}
engines: {node: ^14.21.3 || >=16}
'@paulmillr/qr@0.3.0':
resolution: {integrity: sha512-3s/cagXuoXTA2gWSfSfJNanNgm2ifmqgoX8WLOs5//3qrIJ3WWHFjqFqCxvYGf46Afwv6PctT9eAOXLDGwp96Q==}
'@polka/url@1.0.0-next.28':
resolution: {integrity: sha512-8LduaNlMZGwdZ6qWrKlfa+2M4gahzFkprZiAt2TF8uS0qQgBizKXpXURqvTJ4WtmupWxaLqjRb2UCTe72mu+Aw==}
@ -506,9 +492,6 @@ packages:
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
hasBin: true
otpauth@9.3.5:
resolution: {integrity: sha512-jQyqOuQExeIl4YIiOUz4TdEcamgAgPX6UYeeS9Iit4lkvs7bwHb0JNDqchGRccbRfvWHV6oRwH36tOsVmc+7hQ==}
pathe@1.1.2:
resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==}
@ -775,10 +758,6 @@ snapshots:
'@jridgewell/resolve-uri': 3.1.2
'@jridgewell/sourcemap-codec': 1.5.0
'@noble/hashes@1.5.0': {}
'@paulmillr/qr@0.3.0': {}
'@polka/url@1.0.0-next.28': {}
'@rollup/rollup-android-arm-eabi@4.25.0':
@ -1042,10 +1021,6 @@ snapshots:
nanoid@3.3.7: {}
otpauth@9.3.5:
dependencies:
'@noble/hashes': 1.5.0
pathe@1.1.2: {}
pathval@2.0.0: {}