Skip to content

Commit

Permalink
fix: move vue server plugin out of server/ directory
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jan 17, 2024
1 parent a0e7553 commit 3116a73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export default defineNuxtModule<ModuleOptions>({

// 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')
Expand Down
Original file line number Diff line number Diff line change
@@ -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',
Expand Down

0 comments on commit 3116a73

Please sign in to comment.