summary refs log tree commit diff
path: root/src/api/middlewares/Authentication.ts
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-09-29 21:28:06 +0200
committerRory& <root@rory.gay>2025-09-29 22:08:03 +0200
commit0c3d8a792f9f17f2f28ad449cd8bc5c2a381c8d5 (patch)
treec3496223456f3af11f5ce322d36619c22f961cb1 /src/api/middlewares/Authentication.ts
parentUpdate file-type (diff)
downloadserver-ts-0c3d8a792f9f17f2f28ad449cd8bc5c2a381c8d5.tar.xz
Drop @sentry/node (Sentry support) - untested and unused
Diffstat (limited to 'src/api/middlewares/Authentication.ts')
-rw-r--r--src/api/middlewares/Authentication.ts3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/api/middlewares/Authentication.ts b/src/api/middlewares/Authentication.ts

index b297a40c..987493f9 100644 --- a/src/api/middlewares/Authentication.ts +++ b/src/api/middlewares/Authentication.ts
@@ -16,7 +16,6 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import * as Sentry from "@sentry/node"; import { checkToken, Rights } from "@spacebar/util"; import { NextFunction, Request, Response } from "express"; import { HTTPError } from "lambert-server"; @@ -108,8 +107,6 @@ export async function Authentication( if (!req.headers.authorization) return next(new HTTPError("Missing Authorization Header", 401)); - Sentry.setUser({ id: req.user_id }); - try { const { decoded, user } = await checkToken(req.headers.authorization);