-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API resolved without sending a response for session #153
Comments
Can you post more code so I can try and reproduce the issue? |
I will try to create a duplicate mock repo as soon as I get a chance, just pressed for time now, thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
Love the ease of use of the
next-connect
andnext-session
libraries!I am using the setup in this example with Passport,
next-connect
andnext-session
, with a MongoDB session store, to set up the authentication for my NextJS app.However, as soon as I add the session middleware in the auths array i.e. :
const auths = [session, passport.initialize(), passport.session()];
,I continuously get the 'API resolved without sending a response' warning from NextJS, even though it does resolve.
When I remove the
session
exported variable from the array and only keeppassport.initialize()
andpassport.session()
, the warning disappears.I cannot seem isolate the issue, as the code and structure used is practically identical to the example, with only the querying logic for the strategy being significantly changed. I have made sure all
next()
calls areawait
'ed as mentioned in thenext-connect
docs, but for some or other reason the warning still appears.Any help is greatly appreciated!
The text was updated successfully, but these errors were encountered: