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

fix logout in with-iron-session example #12704

Merged
merged 1 commit into from
May 11, 2020
Merged

fix logout in with-iron-session example #12704

merged 1 commit into from
May 11, 2020

Conversation

dpyzo0o
Copy link

@dpyzo0o dpyzo0o commented May 11, 2020

@dpyzo0o dpyzo0o requested review from lfades and Timer as code owners May 11, 2020 06:26
@vvo
Copy link
Member

vvo commented May 11, 2020

Very good catch @dpyzo0o thanks so much! LGTM!

For Next.js maintainers: destroy already sets the right headers and save() is not required: worth it will restart a session.

@@ -2,6 +2,5 @@ import withSession from '../../lib/session'

export default withSession(async (req, res) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

async is no longer required

@Timer Timer added the examples Issue/PR related to examples label May 11, 2020
@Timer Timer merged commit 29b1100 into vercel:canary May 11, 2020
chibicode pushed a commit to chibicode/next.js that referenced this pull request May 21, 2020
rokinsky pushed a commit to rokinsky/next.js that referenced this pull request Jul 11, 2020
@vercel vercel locked as resolved and limited conversation to collaborators Jan 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
examples Issue/PR related to examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants