specific-silverS
Refine15mo ago
33 replies
specific-silver

How to display Auth Provider Method Errors on Login Page?

We are using Refine Auth Provider and have implemented all the methods including check. During check, we may get an error and in such a case we want to redirect to login page. The redirection is working since we are returning Promise<CheckResponse> as per the documentation.

However, we are also passing an error message in CheckResponse object. The expectation was that the login page would show the error message using Notification Provider configured in Refine. However, we are not seeing the error on the login page via Notification Provider. I have checked that the CheckResponse object is properly populated with the right error message. How can we make this redirection + error notification work?
Was this page helpful?