However, it is not the error. I am following the global error handling. When we use the app for first time,it opens the login page, then checks hits the api /auth/me . User is not authenticated, so it gets 401 response and a popup opens to show the error.
To resolve this issue either
- Make some changes in error interceptor.
- Or change the logic (why is it hitting the
me endpoint in the login page.
However, it is not the error. I am following the global error handling. When we use the app for first time,it opens the login page, then checks hits the api
/auth/me. User is not authenticated, so it gets 401 response and a popup opens to show the error.To resolve this issue either
meendpoint in the login page.