fix: add missing auth property to new defaults function (#11561)

https://github.com/payloadcms/payload/pull/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
This commit is contained in:
Alessio Gravili
2025-03-05 16:45:24 -07:00
committed by GitHub
parent 8f6d2e79a1
commit 3af0468062

View File

@@ -152,5 +152,10 @@ export const addDefaultsToConfig = (config: Config): Config => {
}
config.upload = config.upload ?? {}
config.auth = {
jwtOrder: ['JWT', 'Bearer', 'cookie'],
...(config.auth || {}),
}
return config
}