diff options
author | Vitaly Takmazov | 2023-10-08 18:45:33 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-10-08 18:47:14 +0300 |
commit | f3ec3b0b88a43e2a48db51b81f9b5778ade11248 (patch) | |
tree | 084940cccbbded3dff9d1deb0048ae09cb1bba75 /vnext/src/api | |
parent | e8744a1620d7761cf721f1cc21562ad2c6ec8e5c (diff) |
Fix initial auth from cookie
Diffstat (limited to 'vnext/src/api')
-rw-r--r-- | vnext/src/api/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vnext/src/api/index.js b/vnext/src/api/index.js index 566478a9..24f2fe88 100644 --- a/vnext/src/api/index.js +++ b/vnext/src/api/index.js @@ -87,11 +87,11 @@ client.interceptors.request.use(config => { /** * fetch my info - * @param {string} username - * @param {string} password + * @param {string=} username + * @param {string=} password * @returns {Promise<SecureUser, Error>} me object */ -export function me(username = '', password = '') { +export function me(username, password) { let cookies = new Cookies() return new Promise((resolve, reject) => { client.get('/api/me', { |