add and use isAuthenticated method

This commit is contained in:
2017-02-14 20:37:16 -07:00
parent b800513800
commit faee26c586
3 changed files with 8 additions and 4 deletions

View File

@@ -1,3 +1,7 @@
export function getUser() {
return Promise.resolve(null);
}
export function isAuthenticated() {
return getUser().then(Boolean);
}