We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fee74f commit e3c695eCopy full SHA for e3c695e
src/api/utils/api.utils.ts
@@ -100,7 +100,7 @@ export async function client<T>(
100
...customConfig.headers,
101
//passing authorization header only if access token is available, to avoid sending
102
// "Authorization: Bearer undefined" in the headers which might cause issues with some APIs
103
- ...(accessToken ? { Authorization: `Bearer ${accessToken}` } : {}),
+ ...(accessToken ? { 'X-UHD-AUTH': `Bearer ${accessToken}` } : {}),
104
},
105
}
106
0 commit comments