Skip to content
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

Open
amhassen97 opened this issue Oct 17, 2022 · 2 comments
Open

API resolved without sending a response for session #153

amhassen97 opened this issue Oct 17, 2022 · 2 comments

Comments

@amhassen97
Copy link

amhassen97 commented Oct 17, 2022

Hi

Love the ease of use of the next-connect and next-session libraries!

I am using the setup in this example with Passport, next-connect and next-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 keep passport.initialize() and passport.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 are await 'ed as mentioned in the next-connect docs, but for some or other reason the warning still appears.

Any help is greatly appreciated!

@danielmeeusen
Copy link

Can you post more code so I can try and reproduce the issue?

@amhassen97
Copy link
Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants