warpgate/warpgate-web
kekkon 3c3b843d72
Validate a TOTP code before saving it (#1055)
In order to do this, I had to remove the very old and unmaintainted
`otplib` and replace it with the well-maintained
[otpauth](https://www.npmjs.com/package/otpauth).

I kept the parameters the same, but if there is something only slightly
off between the two libraries, this could cause a major headache. I am
unsure on how to test this though, or if we can provide some sort of
migration for this.

The reason for the upgrade is two-fold:

1. As I said, the original library was unmaintained
2. It's verification mechanism relied on a Buffer class that, as far as
I can tell, can't work without some `require` statements that are
missing from the library's source files.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eugene <inbox@null.page>
2024-09-11 09:30:02 +02:00
..
public/assets updated logo 2022-07-03 22:42:37 +02:00
src Validate a TOTP code before saving it (#1055) 2024-09-11 09:30:02 +02:00
.editorconfig HTTP targets support (fixes #116) 2022-06-26 20:50:04 +02:00
.eslintrc.yaml lint 2024-07-26 21:09:41 +02:00
.gitignore HTTP targets support (fixes #116) 2022-06-26 20:50:04 +02:00
Cargo.toml Bump version: 0.10.1 → 0.10.2 2024-08-14 22:59:52 +02:00
openapitools.json Upgrade TypeScript and Svelte Versions (#995) 2024-07-16 18:54:07 +02:00
package.json Validate a TOTP code before saving it (#1055) 2024-09-11 09:30:02 +02:00
svelte.config.js bumped vite 2022-11-11 20:31:08 +01:00
tsconfig.json lint 2024-07-26 21:09:41 +02:00
tsconfig.node.json HTTP targets support (fixes #116) 2022-06-26 20:50:04 +02:00
vite.config.ts lint 2024-07-26 21:09:41 +02:00
yarn.lock Validate a TOTP code before saving it (#1055) 2024-09-11 09:30:02 +02:00