fix: cleanup consent

This commit is contained in:
Philipinho
2026-08-26 12:48:40 +01:00
parent 1a4ed15c38
commit 2cd5b861b9
5 changed files with 8 additions and 29 deletions
@@ -51,7 +51,7 @@ export class JwtAuthGuard extends AuthGuard('jwt') {
[ctx.getHandler(), ctx.getClass()],
);
if (requiresSession && user.authType !== JwtType.ACCESS) {
this.logger.warn(
this.logger.debug(
`session-only endpoint ${ctx.getClass()?.name}.${ctx.getHandler()?.name} refused authType ${user.authType}`,
);
throw new ForbiddenException(
@@ -92,7 +92,7 @@ export class JwtStrategy extends PassportStrategy(Strategy, 'jwt') {
this.sessionActivityService.trackActivity(sessionId, payload.sub, payload.workspaceId);
}
return { user, workspace };
return { user, workspace, authType: JwtType.ACCESS };
}
private async validateApiKey(req: any, payload: JwtApiKeyPayload) {