How do I get the current login state to create a n...
# prisma-whats-new
e
How do I get the current login state to create a navigational gaurd in vue-router? I'm saving the current userId in localStorage if the login is successful and grab based on this id the user's data using a currentUser query, do you guys recommend reading the cache to see if the data from a currentUser query exists? I guess this will only work if we're able to detect when an 'unauthorized' apollo error occurs so we can clear this data out, can I attach a global error handler or apollo?