account_not_linked: I have react and express setup and using better auth

How to get this error to the frontend, right now it renders the better-auth error page
3 Replies
Ping
Ping2w ago
Normally if an error occurs in the backend and it doesn't show on the frontend, it usually means it's meant to be a backend error. You can't really bring an error that only logs on backend to go to frontend. However, I can help with the error page if you don't want that. You can provide an error page URL to redirect your users to a page which you create if something went wrong:
No description
Ashwanee Kumar Gupta
Hi @Ping thanks for your response. I have a question, How to manage and what should be the next steps after this kind of error? Can you please guide me on setting up the authentication in my react and express application.
Ping
Ping2w ago
Once it redirects to your error page, it should include an error query param in the URL, which you can then display in your UI. There is nothing much you can do after this. You'll need to look this up online or follow our docs.

Did you find this page helpful?