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

Unexpected console.log with next-auth v5.0.0-beta.11 #10034

Closed
phev8 opened this issue Feb 15, 2024 · 3 comments · Fixed by #10051
Closed

Unexpected console.log with next-auth v5.0.0-beta.11 #10034

phev8 opened this issue Feb 15, 2024 · 3 comments · Fixed by #10051
Labels
bug Something isn't working triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

Comments

@phev8
Copy link

phev8 commented Feb 15, 2024

Environment

macOS, NodeJS v21.2.0

Reproduction URL

https://github.com/ukhsa-flusurvey/flusurvey-admin/tree/auth-rework

Describe the issue

After upgrading to next-auth v5.0.0-beta.11 I see log line after each request the middleware is run with similar content:

{ x-middleware-next: '1' }
{
  set-cookie: 'authjs.session-token=<redacted>; Path=/; Expires=Sat, 16 Mar 2024 09:21:21 GMT; HttpOnly; SameSite=Lax',
  x-middleware-next: '1'
}

How to reproduce

Maybe related to these changes?

Screenshot 2024-02-15 at 10 24 12

Expected behavior

Can these be removed somehow?

@phev8 phev8 added bug Something isn't working triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime. labels Feb 15, 2024
@Six6pounder
Copy link

Encountering the same issue where the cookie is regenerated upon navigating to a new page, with its expiration date resetting concurrently with each logged message. Not sure this behavior is normal

@activemonkeys
Copy link

Also encountering the same behaviour with next-auth v5.0.0-beta.11 in development and unable to turn this logging off.

@omarasdider
Copy link

How can remove this problem in terminal 2day try but failed pls any solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants