summaryrefslogtreecommitdiffhomepage
path: root/app/lib
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@codeispoetry.ru>2017-02-13 17:06:05 +0000
committerAndrej Mihajlov <and@codeispoetry.ru>2017-02-13 17:06:05 +0000
commit18f8c8bdfa2575242f41dd775b6a51a38f962e1e (patch)
treef007b6942fcf587534ac0f8d3b072f9045bcdb34 /app/lib
parent91c10ffcf4c0577507970d71f1d21f4a7de51196 (diff)
downloadmullvadvpn-18f8c8bdfa2575242f41dd775b6a51a38f962e1e.tar.xz
mullvadvpn-18f8c8bdfa2575242f41dd775b6a51a38f962e1e.zip
Add logout
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/backend.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/lib/backend.js b/app/lib/backend.js
index 7cd5c0af1f..7d94baa5a5 100644
--- a/app/lib/backend.js
+++ b/app/lib/backend.js
@@ -36,6 +36,13 @@ class BackendImpl {
}, 2000);
});
}
+
+ logout() {
+ return new Promise((resolve, reject) => {
+ // @TODO: Add logout call
+ resolve();
+ });
+ }
}
/**
@@ -62,4 +69,8 @@ export default class Backend {
return getImpl(this).login(account);
}
+ logout() {
+ return getImpl(this).logout();
+ }
+
};