Skip to content

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

fix: show proper error for invalid_grant

thecodrre0bdfeab58f4
diff --git a/packages/core/utils/http.js b/packages/core/utils/http.js
index 1bf7868a6..f5a970ca2 100644
--- a/packages/core/utils/http.js
+++ b/packages/core/utils/http.js
@@ -107,6 +107,8 @@ function errorTransformer(errorJson) {
switch (error_description) {
case "invalid_username_or_password":
return "Username or password incorrect.";
+ case "invalid_grant":
+ return "You token has expired.";
default:
return error;
}