Delay connect require until authenticate called#17
Draft
Yukaii wants to merge 1 commit intopassport-next:masterfrom
Draft
Delay connect require until authenticate called#17Yukaii wants to merge 1 commit intopassport-next:masterfrom
Yukaii wants to merge 1 commit intopassport-next:masterfrom
Conversation
|
Would it be better to refactor the code in |
|
@Yukaii can you please provide sample code that triggers this error? The test suite doesn't trigger it and it's not happening for me in production either. |
Author
|
@rwky Ok, I'll try reproduce in a minimal repository in the next few days :) Providing more context, I use passport-next with passport-mock-strategy. I'll try to find out where the problem is. |
|
@Yukaii had a chance to create the test repo? |
Author
|
@rwky Didn't have a time to do this yet 😓 Might look into this on weekends. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In d53ff7d (d53ff7d#diff-3d4f4aac823ef6b0561ea61cb312b2c7R10), it moves
const connect = require('../framework/connect')to the top. But it brings up the following error for me because there's a circular require in bothauthentication.jsandconnect.js.This fix reverts part of commit d53ff7d, and moves
require connectto original position.Checklist
$ make test) executes successfully.$ npm run-script lint) executes successfully.