test: make better stack first when creating a connection

This commit is contained in:
Rıdvan Akca
2023-12-11 13:58:27 +03:00
parent e5c4e18fd5
commit 8a8be21d56
7 changed files with 17 additions and 22 deletions

View File

@@ -0,0 +1,9 @@
const addAuthHeader = ($, requestConfig) => {
if ($.auth.data?.apiKey) {
requestConfig.headers.Authorization = `Bearer ${$.auth.data.apiKey}`;
}
return requestConfig;
};
export default addAuthHeader;