Skip to content

Commit 3af0468

Browse files
authored
fix: add missing auth property to new defaults function (#11561)
#10794 added new defaults the config - however, these were only added to the deprecated `defaults` object, which caused our CI to fail. This PR adds them to the new `addDefaultsToConfig` function
1 parent 8f6d2e7 commit 3af0468

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/payload/src/config/defaults.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,5 +152,10 @@ export const addDefaultsToConfig = (config: Config): Config => {
152152
}
153153
config.upload = config.upload ?? {}
154154

155+
config.auth = {
156+
jwtOrder: ['JWT', 'Bearer', 'cookie'],
157+
...(config.auth || {}),
158+
}
159+
155160
return config
156161
}

0 commit comments

Comments
 (0)