Skip to content

Commit

Permalink
📖 Edit README file to update reauthenticate attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiChienHsu committed May 12, 2018
1 parent 82a5d8f commit e6e737c
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 @@ -97,11 +97,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 e6e737c

Please sign in to comment.