Factored out method to verify token & cache