Skip to content

Commit

Permalink
types
Browse files Browse the repository at this point in the history
  • Loading branch information
paula-stacho committed Feb 6, 2024
1 parent 6855855 commit 37cef9a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import {
OIDCTestProvider,
functioningAuthCodeBrowserFlow,
} from '../test/oidc-test-provider';
import type {
OIDCMockProviderConfig,
TokenMetadata,
} from '@mongodb-js/oidc-mock-provider';
import { MongoClient } from 'mongodb';
import type { OpenBrowserOptions } from './';
import { createMongoDBOIDCPlugin } from './';
Expand Down Expand Up @@ -121,7 +125,7 @@ describe('integration test with mongod', function () {
context('can authenticate with a mock IdP', function () {
let provider: OIDCMockProvider;
let connectionString: string;
let getTokenPayload;
let getTokenPayload: OIDCMockProviderConfig['getTokenPayload'];
const tokenPayload = {
expires_in: 3600,
payload: {
Expand All @@ -139,7 +143,7 @@ describe('integration test with mongod', function () {
return this.skip();
}
provider = await OIDCMockProvider.create({
getTokenPayload(metadata: Parameters<typeof getTokenPayload>[0]) {
getTokenPayload(metadata: TokenMetadata) {
return getTokenPayload(metadata);
},
});
Expand Down

0 comments on commit 37cef9a

Please sign in to comment.