I have a mutation called verifyToken to check the validity of my token with token in localStorage to provide access checks. The SecurityLayout component I made needs to check th