Accessing Photon through Local Cloud

Hi All,
The photon is showing a delay when I run a series of commands.
So I tried establishing communication through local cloud.
I followed the instructions given here - https://docs.particle.io/support/troubleshooting/cloud-solutions/core/
The Core is said to be ‘online’.
But when i Do “particle list”, it gives me the following error -
listDevices got error: invalid_grant
Potentially unhandled rejection [2] invalid_grant (WARNING: non-Error used)
Potentially unhandled rejection [3] invalid_grant (WARNING: non-Error used)

Just to add that I have already made a new particle config and that particle config identify does point you to that newly created config and that when changing back to particle config particle and doing particle list, there is no problem.
It will be great if someone shared of any experiences like this and how to resolve this issue.
Thanks