Skip to content

Commit 94de367

Browse files
committed
fix: allow omitting authType
Closes #448
1 parent 7e99825 commit 94de367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default defineNuxtModule<NuxtApolloConfig<any>>({
7373
if (!configPaths[k]) { configPaths[k] = path }
7474
}
7575

76-
v.authType = v?.authType || options.authType
76+
v.authType = v?.authType || (v?.authType === '' || v?.authType === null) ? null : options.authType
7777
v.authHeader = v?.authHeader || options.authHeader
7878
v.tokenName = v?.tokenName || `apollo:${k}.token`
7979
v.tokenStorage = v?.tokenStorage || options.tokenStorage

0 commit comments

Comments
 (0)