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

nuxt 3 middleware sometimes cannot access cookies normally but useCookie can access them #368

Open
5 tasks done
slps970093 opened this issue Jan 5, 2025 · 0 comments
Open
5 tasks done
Labels
🔍️ pending triage This issue needs to be looked into

Comments

@slps970093
Copy link

Are you using Nuxt?

  • Check this box if you encountered the issue using Nuxt and the included module.

Describe the bug

I stored the login data in pinia, but after running it for a while, I found that the login was abnormal, and using useCookie will capture the data normally.

Reproduction

https://codesandbox.io/p/devbox/quirky-dawn-sz8hzn?workspaceId=ws_WRdiNywU39oJNcHuJqQ29x

System Info

Operating System: Linux
    Node Version: v20.18.1
    Nuxt Version: ^3.14.1592
    CLI Version: 3.17.2
    Nitro Version: -
    Package Manager: [email protected]
    Builder: -
    User Config: -
    Runtime Modules: -
    Build Modules: -

Used Package Manager

npm

Validations

@slps970093 slps970093 added the 🔍️ pending triage This issue needs to be looked into label Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔍️ pending triage This issue needs to be looked into
Projects
None yet
Development

No branches or pull requests

1 participant