show error message on case self signup login error (#20979)

This commit is contained in:
Ashish Gupta 2025-04-25 20:58:38 +05:30 committed by GitHub
parent d760f95296
commit ea16c1cdab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -362,6 +362,7 @@ export const AuthProvider = ({
if (err?.response?.status === 404) {
if (!authConfig?.enableSelfSignup) {
resetUserDetails();
showErrorToast(err);
history.push(ROUTES.UNAUTHORISED);
} else {
setNewUserProfile(user.profile);