diff --git a/src/module.ts b/src/module.ts index b578366d..5f707275 100644 --- a/src/module.ts +++ b/src/module.ts @@ -254,7 +254,7 @@ export default defineNuxtModule({ } // 9. Add a plugin to refresh the token on production-startup - if (options.provider.type === 'local' && options.provider.refresh.isEnabled) { + if (options.provider.type === 'local' && options.provider.refresh.isEnabled && !options.disableServerSideAuth) { addPlugin(resolve('./runtime/plugins/refresh-token.server')) }