We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dab4864 commit 07ecdffCopy full SHA for 07ecdff
packages/devtools-connect/src/connect.spec.ts
@@ -493,6 +493,16 @@ describe('devtools connect', function () {
493
).to.equal(false);
494
});
495
496
+ it('returns false if the OIDC_CALLBACK is set', function () {
497
+ expect(
498
+ isHumanOidcFlow('mongodb://example/?authMechanism=MONGODB-OIDC', {
499
+ authMechanismProperties: {
500
+ OIDC_CALLBACK: () => Promise.resolve({ accessToken: 'abc123' }),
501
+ },
502
+ }),
503
+ ).to.equal(false);
504
+ });
505
+
506
it('returns false if the ENVIRONMENT url option is set', function () {
507
expect(
508
isHumanOidcFlow(
0 commit comments