From 2558a422eb274b32ec2cd30646bdc32beb455bed Mon Sep 17 00:00:00 2001 From: Radek Stepan Date: Tue, 22 May 2012 15:40:35 +0100 Subject: [PATCH] authenticated user example --- app.coffee | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app.coffee b/app.coffee index 0d7da5a..3865136 100644 --- a/app.coffee +++ b/app.coffee @@ -22,7 +22,13 @@ http.createServer((req, res) -> # Callback url from GitHub login. else if uri.pathname is "/auth" github.auth.login qs.parse(uri.query).code, (err, token) -> - console.log token + + console.log github.client() + + # Build client from access token provided. + #client = github.client token + #client.get "/user", (err, status, body) -> + # console.log body res.writeHead 200, "Content-Type": "text/plain"