-
Notifications
You must be signed in to change notification settings - Fork 29k
Closed as not planned
Closed as not planned
Copy link
Labels
examplesIssue was opened via the examples template.Issue was opened via the examples template.good first issueEasy to fix issues, good for newcomersEasy to fix issues, good for newcomerslockedstaleThe issue has not seen recent activity.The issue has not seen recent activity.
Description
Verify canary release
- I verified that the issue exists in the latest Next.js canary release
Provide environment information
---
Which example does this report relate to?
with-passport-and-next-connect
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
Here in with-passport-and-next-connect end
function is defined as async
. This cannot be correct as it's called without await
by the framework creating a race condition.
This is a result of
- Trying to override sync
end
- Using async
@hapi\iron
apis
Expected Behavior
This can be fixed either by saving the session somewhere else or by using a sync cryptography API.
To Reproduce
Run the example, see API resolved without sending a response for /api/auth/session, this may result in stalled requests.
in the console.
Metadata
Metadata
Assignees
Labels
examplesIssue was opened via the examples template.Issue was opened via the examples template.good first issueEasy to fix issues, good for newcomersEasy to fix issues, good for newcomerslockedstaleThe issue has not seen recent activity.The issue has not seen recent activity.