From f3ec3b0b88a43e2a48db51b81f9b5778ade11248 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 8 Oct 2023 18:45:33 +0300 Subject: Fix initial auth from cookie --- vnext/src/api/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vnext/src/api/index.js') 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} 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', { -- cgit v1.2.3