1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-03 23:50:33 +02:00

All: Improved handling of expired sessions when using Joplin Server

This commit is contained in:
Laurent Cozic
2021-10-25 17:49:38 +01:00
parent b497177fff
commit ace1118cf1

View File

@ -257,6 +257,12 @@ export default class JoplinServerApi {
logger.warn(this.requestToCurl_(url, fetchOptions)); logger.warn(this.requestToCurl_(url, fetchOptions));
logger.warn(error); logger.warn(error);
} }
if (error.code === 403) {
this.session_ = null;
error.message = 'Session has expired or is invalid, please try again.';
}
throw error; throw error;
} }
} }