diff --git a/src/module.ts b/src/module.ts index 4809978d..2d41bfdc 100644 --- a/src/module.ts +++ b/src/module.ts @@ -227,7 +227,7 @@ export default defineNuxtModule({ // 7.2 Add a server-plugin to refresh the token on production-startup if (selectedProvider === 'refresh') { - addPlugin(resolve('./runtime/server/plugins/refresh-token.server')) + addPlugin(resolve('./runtime/plugins/refresh-token.server')) } logger.success('`nuxt-auth` setup done') diff --git a/src/runtime/server/plugins/refresh-token.server.ts b/src/runtime/plugins/refresh-token.server.ts similarity index 95% rename from src/runtime/server/plugins/refresh-token.server.ts rename to src/runtime/plugins/refresh-token.server.ts index c7d90ec1..51490231 100644 --- a/src/runtime/server/plugins/refresh-token.server.ts +++ b/src/runtime/plugins/refresh-token.server.ts @@ -1,5 +1,5 @@ -import { _fetch } from '../../utils/fetch' -import { jsonPointerGet, useTypedBackendConfig } from '../../helpers' +import { _fetch } from '../utils/fetch' +import { jsonPointerGet, useTypedBackendConfig } from '../helpers' import { defineNuxtPlugin, useAuthState, useRuntimeConfig } from '#imports' export default defineNuxtPlugin({ name: 'refresh-token-plugin',