
Hi, how to change the exception message according to the user locale? Or if that is not possible how to uniquely identify which exception is which so that it can be handled specifically.
For example if the authentication is failed. I want to display custom error message instead of the default "Invalid credentials. Please check the email and password."
AppwriteException: Invalid credentials. Please check the email and password. at Client.<anonymous> (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=30fb1690:850:17) at Generator.next (<anonymous>) at fulfilled (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=30fb1690:488:24)
And in some other scenario like changing the user email where the password is required, if incorrect password provided instead of showing " Invalid credentials. Please check the email and password." message I want to show custom error message to explain to the user why the action is failing.
Thanks.
Recommended threads
- Query.equal error
Hi guys. I'm using Appwrite Cloud, and I'm using version 21 of node-appwrite to benefit from transactions. The problem is I seem to be getting an error when I u...
- Cannot access my Appwrite database on th...
Hello guys, I am currently developing a web app and using appwrite for authentication, database, storage and messaging. It was working well but since yesterday...
- Nuxt Middleware Support
So I'm trying to protect some routes so that the user is redirected back to the login screen should they not have an active session. However, I'm stuck in a lo...
