Skip to content

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

fix: do not set custom error for invalid_grant

thecodrrf488143f8396
diff --git a/packages/core/utils/http.js b/packages/core/utils/http.js
index adc09bab1..5a733552d 100644
--- a/packages/core/utils/http.js
+++ b/packages/core/utils/http.js
@@ -108,10 +108,7 @@ function errorTransformer(errorJson) {
case "invalid_username_or_password":
return "Username or password incorrect.";
default:
- return (
- error_description ||
- "Your token has expired. Please create a backup & relogin."
- );
+ return error_description || error;
}
}
default: