feat(tech-insights): make tokenManager available on FactRetrieverContext

Signed-off-by: Chris Trombley <ctrombley@gmail.com>
This commit is contained in:
Chris Trombley
2022-04-25 18:29:17 -07:00
parent 47bac22cdc
commit a50b6474a7
12 changed files with 60 additions and 10 deletions
+5 -1
View File
@@ -15,7 +15,10 @@
*/
import { DateTime, Duration, DurationLike } from 'luxon';
import { Config } from '@backstage/config';
import { PluginEndpointDiscovery } from '@backstage/backend-common';
import {
PluginEndpointDiscovery,
TokenManager,
} from '@backstage/backend-common';
import { Logger } from 'winston';
/**
@@ -135,6 +138,7 @@ export type FactRetrieverContext = {
config: Config;
discovery: PluginEndpointDiscovery;
logger: Logger;
tokenManager: TokenManager;
entityFilter?:
| Record<string, string | symbol | (string | symbol)[]>[]
| Record<string, string | symbol | (string | symbol)[]>;