aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/api/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/api/index.js')
-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', {