Skip to content

Commit

Permalink
Merge pull request #242 from WeiChienHsu/master
Browse files Browse the repository at this point in the history
Updated README file for 'reauthenticate' attribute
  • Loading branch information
jaredhanson authored Jan 22, 2019
2 parents 76106a2 + e6e737c commit a41068e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ for further details.

##### How do I re-ask for for declined permissions?

Set the `authType` option to `rerequest` when authenticating.
Set the `authType` option to `reauthenticate` when authenticating.

```js
app.get('/auth/facebook',
passport.authenticate('facebook', { authType: 'rerequest', scope: ['user_friends', 'manage_pages'] }));
passport.authenticate('facebook', { authType: 'reauthenticate', scope: ['user_friends', 'manage_pages'] }));
```

Refer to [re-asking for declined permissions](https://developers.facebook.com/docs/facebook-login/web#re-asking-declined-permissions)
Expand Down

0 comments on commit a41068e

Please sign in to comment.