mirror of
https://github.com/laurent22/joplin.git
synced 2025-04-26 12:02:59 +02:00
All: Improved handling of expired sessions when using Joplin Server
This commit is contained in:
parent
b497177fff
commit
ace1118cf1
@ -257,6 +257,12 @@ export default class JoplinServerApi {
|
||||
logger.warn(this.requestToCurl_(url, fetchOptions));
|
||||
logger.warn(error);
|
||||
}
|
||||
|
||||
if (error.code === 403) {
|
||||
this.session_ = null;
|
||||
error.message = 'Session has expired or is invalid, please try again.';
|
||||
}
|
||||
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user