value of the results of the 'isLoggedIn' function is not good.

value of the results of the 'isLoggedIn' functions are coming out to true even if there is no token.

Another thing, you may need to check comes out has a value of false when the value is null token.

It is visible the code you want to change to try to continue to use.