From bd92e357291facd1cc565618d2253597c7b8ca9e Mon Sep 17 00:00:00 2001 From: Daniel Hougaard <62331820+DanielHougaard@users.noreply.github.com> Date: Tue, 12 Mar 2024 14:21:16 +0100 Subject: [PATCH] Feat: Scoped JWT to organization, add actorAuthMethod to Permission types --- backend/src/lib/types/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/src/lib/types/index.ts b/backend/src/lib/types/index.ts index 918322d62..547e85af9 100644 --- a/backend/src/lib/types/index.ts +++ b/backend/src/lib/types/index.ts @@ -1,9 +1,10 @@ -import { ActorType } from "@app/services/auth/auth-type"; +import { ActorAuthMethod, ActorType, AuthMethod } from "@app/services/auth/auth-type"; export type TOrgPermission = { actor: ActorType; actorId: string; orgId: string; + actorAuthMethod: ActorAuthMethod; actorOrgId?: string; }; @@ -11,6 +12,7 @@ export type TProjectPermission = { actor: ActorType; actorId: string; projectId: string; + actorAuthMethod: AuthMethod | null; actorOrgId?: string; };