From bfc63fdf378a496bfdca71f820c7fe0360e10842 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Wed, 14 Feb 2024 00:39:54 +0100 Subject: [PATCH] backend-app-api: add TODO for authServiceFactory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Fredrik Adelöw Co-authored-by: Carl-Erik Bergström Co-authored-by: blam Signed-off-by: Patrik Oldsberg --- .../src/services/implementations/auth/authServiceFactory.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/backend-app-api/src/services/implementations/auth/authServiceFactory.ts b/packages/backend-app-api/src/services/implementations/auth/authServiceFactory.ts index c2b4236f45..7e9ad3077f 100644 --- a/packages/backend-app-api/src/services/implementations/auth/authServiceFactory.ts +++ b/packages/backend-app-api/src/services/implementations/auth/authServiceFactory.ts @@ -167,6 +167,7 @@ class DefaultAuthService implements AuthService { const { type } = internalForward.principal; switch (type) { + // TODO: Check whether the principal is ourselves case 'service': return this.tokenManager.getToken(); case 'user':