engin11/21/2022, 4:33 AM
returns true, with a user ID. However, that User does not exist. It must have been deleted. So the problem seems to be: when a User gets deleted on the backend, if the user still has a cookie, the app can get "stuck" or go into an erroneous state. The obvious workaround is to just delete the cookie. I can do that because I understand enough about how this works. My users would never understand, and they would be very confused, and telling them to delete their cookie is not a great option. I can't imagine how a user would get into this state, but now I know that this is a possible state, and therefore I think I need to deal with it. Note that now that you are offering a User Dashboard, this type of case is more likely to occur! Do you have any advice?