diff options
Diffstat (limited to 'src/api/utils')
-rw-r--r-- | src/api/utils/auth.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/utils/auth.ts b/src/api/utils/auth.ts index 899881e88..a7a73309d 100644 --- a/src/api/utils/auth.ts +++ b/src/api/utils/auth.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import localStorage from 'mobx-localstorage'; | 1 | import localStorage from 'mobx-localstorage'; |
2 | import { ferdiLocale, ferdiVersion } from '../../environment-remote'; | 2 | import { ferdiumLocale, ferdiumVersion } from '../../environment-remote'; |
3 | 3 | ||
4 | export const prepareAuthRequest = ( | 4 | export const prepareAuthRequest = ( |
5 | // eslint-disable-next-line unicorn/no-object-as-default-parameter | 5 | // eslint-disable-next-line unicorn/no-object-as-default-parameter |
@@ -11,10 +11,10 @@ export const prepareAuthRequest = ( | |||
11 | headers: { | 11 | headers: { |
12 | 'Content-Type': 'application/json', | 12 | 'Content-Type': 'application/json', |
13 | 'X-Franz-Source': 'desktop', | 13 | 'X-Franz-Source': 'desktop', |
14 | 'X-Franz-Version': ferdiVersion, | 14 | 'X-Franz-Version': ferdiumVersion, |
15 | 'X-Franz-platform': process.platform, | 15 | 'X-Franz-platform': process.platform, |
16 | 'X-Franz-Timezone-Offset': new Date().getTimezoneOffset(), | 16 | 'X-Franz-Timezone-Offset': new Date().getTimezoneOffset(), |
17 | 'X-Franz-System-Locale': ferdiLocale, | 17 | 'X-Franz-System-Locale': ferdiumLocale, |
18 | // @ts-expect-error Property 'headers' does not exist on type '{ method: string; }'. | 18 | // @ts-expect-error Property 'headers' does not exist on type '{ method: string; }'. |
19 | ...options.headers, | 19 | ...options.headers, |
20 | }, | 20 | }, |