Skip to content

Commit

Permalink
Merge c16791f into 723e8f3
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinclement08 committed Oct 15, 2019
2 parents 723e8f3 + c16791f commit ed5e3b0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Expand Up @@ -77,6 +77,25 @@ app.get('/auth/google/callback',
});
```

In order to add Google-specific authorization parameters to the google authoriztion
URI, the `passport.authenticate` middleware can be given the google options in the
2nd parameter like so:

```javascript
app.get('/auth/google/callback',
passport.authenticate('google', {
failureRedirect: '/login',
prompt: 'select-account',
hd: '',
loginHint: '',
accessType: '',
}),
function(req, res) {
// Successful authentication, redirect home.
res.redirect('/');
});
```

## Examples

Developers using the popular [Express](http://expressjs.com/) web framework can
Expand Down

0 comments on commit ed5e3b0

Please sign in to comment.