Fix jwt auth guard for application (#18234)

This commit is contained in:
Paul Rastoin
2026-02-25 18:01:55 +01:00
committed by GitHub
parent 1fa55bfd02
commit 98d67e0f6b
@@ -32,9 +32,13 @@ export class JwtAuthGuard implements CanActivate {
)
: undefined;
if (!isDefined(data.apiKey) && !isDefined(data.userWorkspaceId)) {
if (
!isDefined(data.apiKey) &&
!isDefined(data.userWorkspaceId) &&
!isDefined(data.application)
) {
this.logger.warn(
`Auth failed: no apiKey or userWorkspaceId in context`,
`Auth failed: no apiKey, userWorkspaceId, or application in context`,
);
return false;