|
@@ -151,9 +151,9 @@ const transform: AxiosTransform = {
|
|
|
const token = getToken();
|
|
|
if (token && (config as Recordable)?.requestOptions?.withToken !== false) {
|
|
|
// jwt token
|
|
|
- (config as Recordable).headers.Authorization = options.authenticationScheme
|
|
|
- ? `${options.authenticationScheme} ${token}`
|
|
|
- : token;
|
|
|
+ // (config as Recordable).headers.Authorization = options.authenticationScheme
|
|
|
+ // ? `${options.authenticationScheme} ${token}`
|
|
|
+ // : token;
|
|
|
(config as Recordable).headers.token = options.authenticationScheme
|
|
|
? `${options.authenticationScheme} ${token}`
|
|
|
: token;
|