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
1 changed files with 3 additions and 1 deletions

View File

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