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

Redirect back to login page after logged in and reload the page [Local provider - Static files] #743

Open
prabodhana opened this issue Apr 24, 2024 · 1 comment
Labels
bug A bug that needs to be resolved p4 Important Issue provider-refresh An issue with the refresh provider

Comments

@prabodhana
Copy link

prabodhana commented Apr 24, 2024

Environment

  • Operating System: Linux
  • Node Version: v20.12.1
  • Nuxt Version: 3.11.2
  • CLI Version: 3.11.1
  • Nitro Version: 2.9.6
  • Package Manager: npm@10.5.0
  • Builder: -
  • User Config: modules, typescript, auth
  • Runtime Modules: @sidebase/nuxt-auth@0.7.2
  • Build Modules: -

Reproduction

stackblitz

Login - 1000
password - 123456

Describe the bug

I use sidebase nuxt auth local provide for my project. On the local development env its works without issue but after I complied it to static files using nuxt generate command. and after its have strange behavior. After I logged in to the system and if I refresh the browser window its logged out me and redirect me to login page.

Additional context

No response

Logs

There's a warning after run nuxt generate command

WARN [plugin:vite:reporter] [plugin vite:reporter]
(!) project_path..../node_modules/@sidebase/nuxt-auth/dist/runtime/middleware/auth.mjs is dynamically imported by virtual:nuxt:/project_path..../.nuxt/middleware.mjs but also statically imported by /project_path..../node_modules/@sidebase/nuxt-auth/dist/runtime/plugin.mjs, dynamic import will not move module into another chunk.

@prabodhana prabodhana added bug A bug that needs to be resolved pending labels Apr 24, 2024
@ThorsAngerVaNeT
Copy link

Have the same issue

@zoey-kaiser zoey-kaiser added provider-local An issue with the local provider p4 Important Issue provider-refresh An issue with the refresh provider and removed pending provider-local An issue with the local provider labels May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug that needs to be resolved p4 Important Issue provider-refresh An issue with the refresh provider
Projects
None yet
Development

No branches or pull requests

3 participants