diff options
Diffstat (limited to 'src/api/utils/auth.ts')
-rw-r--r-- | src/api/utils/auth.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/api/utils/auth.ts b/src/api/utils/auth.ts index ce30e0132..0188675fc 100644 --- a/src/api/utils/auth.ts +++ b/src/api/utils/auth.ts | |||
@@ -39,6 +39,7 @@ export const prepareLocalToken = async (requestData: { | |||
39 | await when(() => !needsToken() || !!localServerToken(), { timeout: 2000 }); | 39 | await when(() => !needsToken() || !!localServerToken(), { timeout: 2000 }); |
40 | const token = localServerToken(); | 40 | const token = localServerToken(); |
41 | if (token) { | 41 | if (token) { |
42 | // eslint-disable-next-line no-param-reassign | ||
42 | requestData.headers['X-Ferdium-Local-Token'] = token; | 43 | requestData.headers['X-Ferdium-Local-Token'] = token; |
43 | } | 44 | } |
44 | }; | 45 | }; |