1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Various changes

This commit is contained in:
Laurent Cozic
2017-07-07 23:25:03 +01:00
parent e0664167eb
commit 38c9d49cdb
29 changed files with 108 additions and 185 deletions

View File

@ -160,7 +160,7 @@ class OneDriveApi {
let errorResponse = await response.json();
let error = this.oneDriveErrorResponseToError(errorResponse);
if (error.code == 'InvalidAuthenticationToken') {
if (error.code == 'InvalidAuthenticationToken' || error.code == 'unauthenticated') {
await this.refreshAccessToken();
continue;
} else if (error && ((error.error && error.error.code == 'generalException') || (error.code == 'generalException'))) {