I accidentally set the wrong clientSecret which caused the authentication to fail. However, isAuthenticated returned true because auth in local storage was not null:
{"error":"unauthorized_client","error_description":"Invalid client or Invalid client credentials","expires_at":null}