Browse files

asdf

  • Loading branch information...
1 parent 0372e32 commit b90e66cd010dc0d82834f6989deced79f8dbc3dc @quicksnap committed May 27, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 app.js
View
3 app.js
@@ -8,6 +8,7 @@ var express = require('express')
var GOOGLE_CLIENT_ID = "16968816828.apps.googleusercontent.com";
var GOOGLE_CLIENT_SECRET = "R6JKmxJrfO1YxVGG6rwr5fE5";
var port = process.env.PORT || 3000;
+var HOST = process.env.HOSTNAME || "http://localhost:" + port
// Passport session setup.
@@ -33,7 +34,7 @@ passport.deserializeUser(function(obj, done) {
passport.use(new GoogleStrategy({
clientID: GOOGLE_CLIENT_ID,
clientSecret: GOOGLE_CLIENT_SECRET,
- callbackURL: "http://127.0.0.1:3000/auth/google/callback"
+ callbackURL: HOST + "/auth/google/callback"
},
function(accessToken, refreshToken, profile, done) {
// asynchronous verification, for effect...

0 comments on commit b90e66c

Please sign in to comment.