log out when the auth token is expired

This commit is contained in:
Danny Coates 2018-11-05 15:56:59 -08:00
parent d60eb5e022
commit be38392192
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB

View File

@ -128,7 +128,9 @@ export default class User {
);
list = JSON.parse(textDecoder.decode(decrypted));
} catch (e) {
//
if (e.message === '401') {
return this.logout();
}
}
changes = await this.storage.merge(list);
if (!changes.outgoing) {