Skip to content

Commit 58193dd

Browse files
authored
fix(#732): disable server side refresh token plugin when disableServerSideAuth (#1021)
1 parent 07199b1 commit 58193dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export default defineNuxtModule<ModuleOptions>({
254254
}
255255

256256
// 9. Add a plugin to refresh the token on production-startup
257-
if (options.provider.type === 'local' && options.provider.refresh.isEnabled) {
257+
if (options.provider.type === 'local' && options.provider.refresh.isEnabled && !options.disableServerSideAuth) {
258258
addPlugin(resolve('./runtime/plugins/refresh-token.server'))
259259
}
260260

0 commit comments

Comments
 (0)