overleaf/libraries/access-token-encryptor
Antoine Clausse fc34b41b5b [web] Promisify two-factor-authentication (#19004)
* Fixup typos

* Promisify `getPendingUser`

* Promisify `getPendingUserWithExpectations`

* Add promises to `AccessTokenEncryptor`

* Promisify `TwoFactorAuthenticationHandler`

* Promisify/Expressify `TwoFactorAuthenticationController`

* Centralise `unprocessableEntity` error handling into a function

* Fixup: entralise `unprocessableEntity` error handling into a function

Avoid "responding to the query twice"

* Remove unnecessary try/catch

* Fixup: Add `async` to AccessTokenEncryptor promises

* Add tests on `AccessTokenEncryptor.promises`

* Revert "Fixup: entralise `unprocessableEntity` error handling into a function"

This reverts commit 23bd9d73260733062908b98961846733c61171e9.

* Revert "Centralise `unprocessableEntity` error handling into a function"

This reverts commit 197ca3da02412d5224d411b29df1d7b9e5327d01.

GitOrigin-RevId: 1a2864d28e87fd5e48cd3723a3da8047b79a1596
2024-06-26 08:05:06 +00:00
..
lib/js [web] Promisify two-factor-authentication (#19004) 2024-06-26 08:05:06 +00:00
scripts/helpers Merge pull request #18289 from overleaf/ac-ar-eslint-return-await 2024-05-27 10:22:49 +00:00
test [web] Promisify two-factor-authentication (#19004) 2024-06-26 08:05:06 +00:00
.dockerignore Merge pull request #5724 from overleaf/jpa-lean-docker-build 2021-11-09 09:04:02 +00:00
.gitignore Merge pull request #14138 from overleaf/bg-em-jpa-mj-node-18 2023-08-03 08:03:56 +00:00
.mocharc.json [web] Promisify two-factor-authentication (#19004) 2024-06-26 08:05:06 +00:00
.nvmrc Merge pull request #17870 from overleaf/bg-node-upgrade-18-20-2 2024-04-24 08:05:16 +00:00
buildscript.txt Merge pull request #17870 from overleaf/bg-node-upgrade-18-20-2 2024-04-24 08:05:16 +00:00
index.js Merge pull request #4742 from overleaf/jpa-modernize-access-token-encryptor 2021-08-17 08:03:17 +00:00
LICENSE Merge pull request #4742 from overleaf/jpa-modernize-access-token-encryptor 2021-08-17 08:03:17 +00:00
package.json [web] Promisify two-factor-authentication (#19004) 2024-06-26 08:05:06 +00:00
README.md Add readme 2019-05-07 10:44:58 +01:00
tsconfig.json Merge pull request #18167 from overleaf/em-simpler-typescript-backend 2024-05-07 08:04:00 +00:00

Access Token Encryptor

Used in third-party-references, to encrypt access tokens