CLIO-12778: added check to ensure token is valid before issuing grant