throwing an error for bad getToken calls.