aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/api
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-10-08 18:45:33 +0300
committerGravatar Vitaly Takmazov2023-10-08 18:47:14 +0300
commitf3ec3b0b88a43e2a48db51b81f9b5778ade11248 (patch)
tree084940cccbbded3dff9d1deb0048ae09cb1bba75 /vnext/src/api
parente8744a1620d7761cf721f1cc21562ad2c6ec8e5c (diff)
Fix initial auth from cookie
Diffstat (limited to 'vnext/src/api')
-rw-r--r--vnext/src/api/index.js6
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', {