Skip to content
Browse files

twitter - nearly

  • Loading branch information...
1 parent 336ad9c commit f3c3e3ecf74f05b2ea6f80bcd2ad25cda2afb907 @rjrodger committed
Showing with 8 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +3 −0 user-accounts/app.js
  3. +3 −0 user-accounts/public/index.html
View
2 .gitignore
@@ -15,3 +15,5 @@ npm-debug.log
node_modules
*~
.DS_Store
+
+config.mine.js
View
3 user-accounts/app.js
@@ -10,6 +10,7 @@ var argv = require('optimist').argv
// create a seneca instance
var seneca = require('seneca')()
+seneca.use('config',{file:'./config.mine.js'})
var conf = {
@@ -37,6 +38,8 @@ app.use(express.bodyParser())
app.use(express.methodOverride())
app.use(express.json())
+app.use(express.session({secret:'seneca'}))
+
app.use(express.static(__dirname + '/public'))
View
3 user-accounts/public/index.html
@@ -7,6 +7,9 @@
<a href="/login">Multi-page App Login</a><br />
<a href="/single.html">Single-page App Login</a><br />
+<br />
+<a href="/auth/twitter">Twitter Login</a><br />
+
</body>
</html>

0 comments on commit f3c3e3e

Please sign in to comment.
Something went wrong with that request. Please try again.