Skip to content

Commit 0a776fa

Browse files
committed
Prettify
1 parent 6809ff8 commit 0a776fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,19 @@ This can be useful if you'd like to reuse strategy objects but under a different
7777

7878
Most passport strategies that use OAuth 2.0 should work without any additional configuration. Some strategies, however require custom OAuth configuration, or do not expose an oauth2 adapter for internal use. In these cases, a callback can be specified by calling the `use` function with an extra `options` parameter:
7979

80-
``` js
80+
```js
8181
passport.use(strategy, {
8282
setRefreshOAuth2() {
8383
return new OAuth2(/* custom oauth config */);
84-
}
84+
},
8585
});
8686
```
8787

8888
The `setRefreshOAuth2` callback should return an instance of [the node-oauth OAuth2 class](https://github.com/ciaranj/node-oauth#oauth20).
8989

9090
The callback is called with two named parameters, which can be used to further customise the OAuth2 adapter:
9191

92-
``` js
92+
```js
9393
passport.use(strategy, {
9494
setRefreshOAuth2({ strategyOAuth2, refreshOAuth2 }) {
9595
// These named parameters are set for most strategies.
@@ -98,7 +98,7 @@ passport.use(strategy, {
9898
// For example, to set a proxy:
9999
refreshOAuth2.setAgent(new HttpsProxyAgent(agentUrl));
100100
return refreshOAuth2;
101-
}
101+
},
102102
});
103103
```
104104

0 commit comments

Comments
 (0)