Is there any way to validate my OAuth token for the github API? By 'token' I mean the one I get after the user has logged in to my website. I store it on the client computer using cookies, but just checking if there is a token is not enough: I need to actually check if the token is valid or not. Currently this requires me to make a request for information and then catching the errors. However, this is really damaging my rates and also my load speed as the github API is sloooow... I am using Node.js, express and the octonode library.
I tried looking at the github API docs, but they are minimal. Maybe this is to do with OAuth.
curl -u client_id:client_secret https://github.com/applications/client_id/tokens/token_to_checkapi.github.comat the front. Thats the only problem with having the server send a 404, lol, you can't tell if its a legit 404 or your token is invalid. Thanks for your help :)