Seems a very simple change can fix this. Dependeing on your global state just use the existence of auth token to check if the user is logged it in the layout file.
If token exists, show logged in users' nav else show default nav