validate cached github token
Created by: davejrt
fixes: https://github.com/sourcegraph/sourcegraph/issues/30586
Taking some pretty serious liberties here given my lack of TS knowledge.
Test plan
The new function works solo, as a test I created a new cli option to only validate the token in that file if it exists to run locally