fix: Use local file for oidc-provider typings

Due to v8 of oidc-provider being ESM,
we can't use the typings directly because of a TS bug:
https://github.com/microsoft/TypeScript/issues/49721.
This works around that.
This commit is contained in:
Joachim Van Herwegen
2023-06-16 10:36:55 +02:00
parent 7024ee9a58
commit b3ef4ed017
22 changed files with 2235 additions and 27 deletions

View File

@@ -1,8 +1,8 @@
import type { Provider } from 'oidc-provider';
import type { ProviderFactory } from '../../../src/identity/configuration/ProviderFactory';
import { OidcHttpHandler } from '../../../src/identity/OidcHttpHandler';
import type { HttpRequest } from '../../../src/server/HttpRequest';
import type { HttpResponse } from '../../../src/server/HttpResponse';
import type Provider from '../../../templates/types/oidc-provider';
describe('An OidcHttpHandler', (): void => {
const request: HttpRequest = {