Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
scholtzm committed Jun 22, 2016
1 parent ac19dfc commit 5e22204
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ app.get('/auth/steam/return',

## Examples

For a complete, working example, refer to the [signon example](https://github.com/liamcurry/passport-steam/tree/master/examples/signon).
For a complete, working example, refer to the [signon example](https://github.com/liamcurry/passport-steam/tree/master/examples/signon). Do not forget to add your API key.

## Tests

Expand Down
2 changes: 1 addition & 1 deletion examples/signon/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var express = require('express')
, passport = require('passport')
, util = require('util')
, session = require('express-session')
, SteamStrategy = require('passport-steam').Strategy;
, SteamStrategy = require('../../').Strategy;

// Passport session setup.
// To support persistent login sessions, Passport needs to be able to
Expand Down
11 changes: 0 additions & 11 deletions examples/signon/package.json

This file was deleted.

9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,15 @@
"steam-web": "~0.2.4"
},
"devDependencies": {
"ava": "^0.10.0"
"ava": "^0.10.0",
"ejs": "^2.4.2",
"express": "^4.14.0",
"express-session": "^1.13.0",
"passport": "^0.3.2"
},
"scripts": {
"test": "ava test/*.test.js"
"test": "ava test/*.test.js",
"example": "node examples/signon/app.js"
},
"engines": {
"node": ">= 0.4.0"
Expand Down

0 comments on commit 5e22204

Please sign in to comment.