aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/utils/auth.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/utils/auth.js')
-rw-r--r--src/api/utils/auth.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/api/utils/auth.js b/src/api/utils/auth.js
index 6dbdeaa7f..5952cfe11 100644
--- a/src/api/utils/auth.js
+++ b/src/api/utils/auth.js
@@ -1,8 +1,6 @@
1import { remote } from 'electron'; 1import { app } from '@electron/remote';
2import localStorage from 'mobx-localstorage'; 2import localStorage from 'mobx-localstorage';
3 3
4const { app } = remote;
5
6export const prepareAuthRequest = (options = { method: 'GET' }, auth = true) => { 4export const prepareAuthRequest = (options = { method: 'GET' }, auth = true) => {
7 const request = Object.assign(options, { 5 const request = Object.assign(options, {
8 mode: 'cors', 6 mode: 'cors',