From b6de8a9aa20997d8d36b339bb03168c4c8974a32 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Wed, 5 Apr 2023 17:11:03 +0200 Subject: [PATCH] chore: add otplib dependency --- package.json | 3 +++ pnpm-lock.yaml | 31 +++++++++++++++++++++++++++++++ tsconfig.json | 3 +++ 3 files changed, 37 insertions(+) diff --git a/package.json b/package.json index 44243fc0..539af12d 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,9 @@ }, "dependencies": { "@hookform/resolvers": "^2.9.10", + "@otplib/core": "^12.0.1", + "@otplib/plugin-crypto": "^12.0.1", + "@otplib/plugin-thirty-two": "^12.0.1", "@prisma/client": "^4.11.0", "@radix-ui/react-dialog": "^1.0.3", "@radix-ui/react-switch": "^1.0.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 59cd1d2b..bcdc6c5e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,15 @@ dependencies: '@hookform/resolvers': specifier: ^2.9.10 version: 2.9.11(react-hook-form@7.43.7) + '@otplib/core': + specifier: ^12.0.1 + version: 12.0.1 + '@otplib/plugin-crypto': + specifier: ^12.0.1 + version: 12.0.1 + '@otplib/plugin-thirty-two': + specifier: ^12.0.1 + version: 12.0.1 '@prisma/client': specifier: ^4.11.0 version: 4.11.0(prisma@4.11.0) @@ -1482,6 +1491,23 @@ packages: resolution: {integrity: sha512-Aq58f5HiWdyDlFffbbSjAlv596h/cOnt2DO1w3DOC7OJ5EHs0hd/nycJfiu9RJbT6Yk6F1knnRRXNSpxoIVZ9Q==} dev: true + /@otplib/core@12.0.1: + resolution: {integrity: sha512-4sGntwbA/AC+SbPhbsziRiD+jNDdIzsZ3JUyfZwjtKyc/wufl1pnSIaG4Uqx8ymPagujub0o92kgBnB89cuAMA==} + dev: false + + /@otplib/plugin-crypto@12.0.1: + resolution: {integrity: sha512-qPuhN3QrT7ZZLcLCyKOSNhuijUi9G5guMRVrxq63r9YNOxxQjPm59gVxLM+7xGnHnM6cimY57tuKsjK7y9LM1g==} + dependencies: + '@otplib/core': 12.0.1 + dev: false + + /@otplib/plugin-thirty-two@12.0.1: + resolution: {integrity: sha512-MtT+uqRso909UkbrrYpJ6XFjj9D+x2Py7KjTO9JDPhL0bJUYVu5kFP4TFZW4NFAywrAtFRxOVY261u0qwb93gA==} + dependencies: + '@otplib/core': 12.0.1 + thirty-two: 1.0.2 + dev: false + /@phc/format@1.0.0: resolution: {integrity: sha512-m7X9U6BG2+J+R1lSOdCiITLLrxm+cWlNI3HUFA92oLO77ObGNzaKdh8pMLqdZcshtkKuV84olNNXDfMc4FezBQ==} engines: {node: '>=10'} @@ -7984,6 +8010,11 @@ packages: resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} dev: true + /thirty-two@1.0.2: + resolution: {integrity: sha512-OEI0IWCe+Dw46019YLl6V10Us5bi574EvlJEOcAkB29IzQ/mYD1A6RyNHLjZPiHCmuodxvgF6U+vZO1L15lxVA==} + engines: {node: '>=0.2.6'} + dev: false + /through@2.3.8: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} dev: true diff --git a/tsconfig.json b/tsconfig.json index 97c6c6b4..d4c2e2e9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,6 +12,9 @@ "@/client/*": [ "./src/client/*" ], + "@/server/*": [ + "./src/server/*" + ], }, "lib": [ "dom",