I use deep links (i.e. anonymous access) for the public side of my app.
When a logged user tries to access one of those deep links it does not work.
I have one story where a logged user receives an email after completing a step on the private side of the app. The email includes a link for the public side. If the user clicks right away on the link without logging out from the private side, he gets an error while accessing the the public link.
What is the best way to fix this?