Fix of broken API Auth (#8338)

Fix done this morning with @FelixMalfait  from #8295

---------

Co-authored-by: guillim <guillaume@twenty.com>
Co-authored-by: Félix Malfait <felix@twenty.com>
This commit is contained in:
Guillim
2024-11-06 14:45:33 +01:00
committed by GitHub
parent 24656e777e
commit 4b5d096441
11 changed files with 309 additions and 67 deletions

View File

@ -1,14 +1,14 @@
import {
HostComponentInfo,
ContextId,
ContextIdFactory,
ContextIdStrategy,
HostComponentInfo,
} from '@nestjs/core';
import { jwtDecode } from 'jwt-decode';
import { Request } from 'express';
import { jwtDecode } from 'jwt-decode';
import { JwtPayload } from 'src/engine/core-modules/auth/strategies/jwt.auth.strategy';
import { JwtPayload } from 'src/engine/core-modules/auth/types/auth-context.type';
const workspaces = new Map<string, ContextId>();