Merge pull request #27524 from oliverdirks/oliverdirks/node-fetch-cleanup

🧹 use node-fetch
This commit is contained in:
Johan Haals
2024-11-06 11:30:33 +01:00
committed by GitHub
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/backend-defaults': patch
---
Use `node-fetch` instead of native fetch, as per https://backstage.io/docs/architecture-decisions/adrs-adr013
@@ -22,6 +22,7 @@ import { tokenTypes } from '@backstage/plugin-auth-node';
import { JwksClient } from '../JwksClient';
import { HumanDuration, durationToMilliseconds } from '@backstage/types';
import { PluginKeySource } from './keys/types';
import fetch from 'node-fetch';
const SECONDS_IN_MS = 1000;