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

globalAppMiddleware not runs if its installed with installModule #815

Open
agracia-foticos opened this issue Jul 18, 2024 · 2 comments
Open
Labels
bug A bug that needs to be resolved pending An issue waiting for triage

Comments

@agracia-foticos
Copy link

Environment

  • Operating System: Linux
  • Node Version: v20.5.1
  • Nuxt Version: 3.12.3
  • CLI Version: 3.12.0
  • Nitro Version: 2.9.7
  • Package Manager: [email protected]
  • Builder: -
  • User Config: devtools, css, extends, modules, runtimeConfig
  • Runtime Modules: @wpx/auth-internal
  • Build Modules: -

Reproduction

await installModule('@sidebase/nuxt-auth', {
isEnabled : true, //all environment variables are strings
baseURL : ${process.env.NUXT_BASE_URL}/api/auth, // The origin is set to the development origin. Change this when deploying to production by setting origin in this config before build-time or by exporting AUTH_ORIGIN by running export AUTH_ORIGIN=...
provider : { type: 'authjs' },
globalAppMiddleware : true
})

Describe the bug

Middleware not runs

Additional context

No response

Logs

No response

@agracia-foticos agracia-foticos added bug A bug that needs to be resolved pending An issue waiting for triage labels Jul 18, 2024
@srbarba
Copy link

srbarba commented Jul 18, 2024

Can you provide an example where the error can be reproduced?

I use installModule and it works for me.

@agracia-foticos
Copy link
Author

https://stackblitz.com/edit/nuxt-starter-irb91s

This is an example. In this reproduction i put the module.

My project implements this module in nuxt.config.ts
modules : ['nuxt-sso']

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 pending An issue waiting for triage
Projects
None yet
Development

No branches or pull requests

2 participants