Skip to content

Commit

Permalink
remove unused callback for authorization route
Browse files Browse the repository at this point in the history
  • Loading branch information
afeld committed Aug 26, 2020
1 parent ed51c29 commit 891f6bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
17 changes: 3 additions & 14 deletions README.md
Expand Up @@ -53,10 +53,7 @@ For example, as route middleware in an [Express](http://expressjs.com/)
application:

```javascript
app.get('/auth/spotify', passport.authenticate('spotify'), function(req, res) {
// The request will be redirected to spotify for authentication, so this
// function will not be called.
});
app.get('/auth/spotify', passport.authenticate('spotify'));

app.get(
'/auth/spotify/callback',
Expand Down Expand Up @@ -84,11 +81,7 @@ app.get(
'/auth/spotify',
passport.authenticate('spotify', {
scope: ['user-read-email', 'user-read-private']
}),
function(req, res) {
// The request will be redirected to spotify for authentication, so this
// function will not be called.
}
})
);
```

Expand All @@ -102,11 +95,7 @@ app.get(
passport.authenticate('spotify', {
scope: ['user-read-email', 'user-read-private'],
showDialog: true
}),
function(req, res) {
// The request will be redirected to spotify for authentication, so this
// function will not be called.
}
})
);
```

Expand Down
6 changes: 1 addition & 5 deletions examples/login/app.js
Expand Up @@ -88,11 +88,7 @@ app.get(
passport.authenticate("spotify", {
scope: ["user-read-email", "user-read-private"],
showDialog: true,
}),
function (req, res) {
// The request will be redirected to spotify for authentication, so this
// function will not be called.
}
})
);

// GET /auth/spotify/callback
Expand Down

0 comments on commit 891f6bc

Please sign in to comment.