Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

feat: show error if automatic token refresh fails

thecodrrf05735fc9e91
diff --git a/apps/web/src/components/dialogs/sessionexpireddialog.js b/apps/web/src/components/dialogs/sessionexpireddialog.js
index 989276f34..e597fc574 100644
--- a/apps/web/src/components/dialogs/sessionexpireddialog.js
+++ b/apps/web/src/components/dialogs/sessionexpireddialog.js
@@ -37,6 +37,7 @@ function SessionExpiredDialog(props) {
const token = await db.user.tokenManager.getToken();
if (token) onClose(true);
} catch (e) {
+ setError(`Could not refresh access_token. Error: ${e.message}`);
} finally {
setIsLoading(false);
}