This commit is contained in:
Adria Navarro 2024-08-26 18:02:55 +02:00
parent 6a8d55a00c
commit b54b2a7121
1 changed files with 4 additions and 1 deletions

View File

@ -108,7 +108,10 @@ export abstract class TestAPI {
} }
const headersFn = publicUser const headersFn = publicUser
? this.config.publicHeaders.bind(this.config) ? (_extras = {}) =>
this.config.publicHeaders.bind(this.config)({
prodApp: opts?.useProdApp,
})
: (extras = {}) => : (extras = {}) =>
this.config.defaultHeaders.bind(this.config)(extras, opts?.useProdApp) this.config.defaultHeaders.bind(this.config)(extras, opts?.useProdApp)