-
-
Notifications
You must be signed in to change notification settings - Fork 186
Closed
Description
Environment
- Operating System: Darwin
- Node Version: v18.10.0
- Nuxt Version: 3.9.2
- CLI Version: 3.10.0
- Nitro Version: 2.8.1
- Package Manager: yarn@1.22.19
- Builder: -
- User Config: devtools, modules, auth
- Runtime Modules: @sidebase/nuxt-auth@0.6.4
- Build Modules: -
Reproduction
No response
Describe the bug
I've got the setup of the local provider right - and it's working, like this:-
export default defineNuxtConfig({
devtools: {enabled: true},
modules: ["@sidebase/nuxt-auth"],
auth: {
provider: {
type: "local",
},
},
});
but if I try and use the refresh provider:-
export default defineNuxtConfig({
devtools: {enabled: true},
modules: ["@sidebase/nuxt-auth"],
auth: {
provider: {
type: "refresh",
},
},
});
I get the following error:-
[4:22:18 PM] ERROR Importing from server is not allowed in the Vue part of your app. [importing node_modules/@sidebase/nuxt-auth/dist/runtime/server/plugins/refresh-token.server.mjs
Additional context
No response
Logs
No response
Metadata
Metadata
Assignees
Labels
No labels