Hi everybody,
I was using remix-auth remix-auth-form as strategy to authenticate users.
I have used AuthorizationError to throw errors and grab them later from the session in the loader.
The problem is that I thought that the error should disappear from the session after getting it (because it uses session.flash), so if I hard-reload the page the error should disappear from the UI as well, but it persists.
They only way, I was able to make it was committing the session again in the loader, but in the docs I couldn't find that this might be necessary.
I was wondering if this was happening just because I was using a pathless layout route
I created a basic repository with a dummy authentication to demonstrate the issue:
https://github.com/juanmaperez/remix-auth-test
any thoughts?