You've already forked joplin
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:
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user