There are now a check weather or not the token has expired but there should be a validation of the structural integrity of the token also.
I do NOT want to add the token secret to the client and perhaps this check should be done via a specific call to the API, preferably in auth.service -> isUserLoggedIn().
There are now a check weather or not the token has expired but there should be a validation of the structural integrity of the token also.
I do NOT want to add the token secret to the client and perhaps this check should be done via a specific call to the API, preferably in auth.service -> isUserLoggedIn().