Update service-token-router.ts

This commit is contained in:
Daniel Hougaard
2024-01-29 15:19:45 +04:00
parent 36a4bf73a6
commit 0d9ec7cd76

View File

@@ -36,6 +36,7 @@ export const registerServiceTokenRouter = async (server: FastifyZodProvider) =>
actor: req.permission.type
});
// We return the user here because older versions of the deprecated Python SDK depend on it to properly parse the API response.
return { ...serviceToken, workspace: serviceToken.projectId, user };
}
});