Skip to content

Commit

Permalink
fix: allow omitting authType
Browse files Browse the repository at this point in the history
Closes #448
  • Loading branch information
Diizzayy committed Nov 10, 2022
1 parent 7e99825 commit 94de367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default defineNuxtModule<NuxtApolloConfig<any>>({
if (!configPaths[k]) { configPaths[k] = path }
}

v.authType = v?.authType || options.authType
v.authType = v?.authType || (v?.authType === '' || v?.authType === null) ? null : options.authType
v.authHeader = v?.authHeader || options.authHeader
v.tokenName = v?.tokenName || `apollo:${k}.token`
v.tokenStorage = v?.tokenStorage || options.tokenStorage
Expand Down

0 comments on commit 94de367

Please sign in to comment.