You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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. :
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!
The text was updated successfully, but these errors were encountered:
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: