Add Remember me

This commit is contained in:
Viktor Yudov
2024-08-13 02:51:05 +03:00
parent 4e79d0ee03
commit 3e6ded18a5
7 changed files with 49 additions and 3 deletions
+9 -2
View File
@@ -43,6 +43,13 @@ class API {
});
}
async getRememberMeEnabled() {
return this.call({
method: 'get',
path: '/remember-me',
});
}
async getuiTrafficStats() {
return this.call({
method: 'get',
@@ -64,11 +71,11 @@ class API {
});
}
async createSession({ password }) {
async createSession({ password, remember }) {
return this.call({
method: 'post',
path: '/session',
body: { password },
body: { password, remember },
});
}