Skip to content

Commit df8230e

Browse files
committed
Add require call to usage example
1 parent ffdc62d commit df8230e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ This can be useful if you'd like to reuse strategy objects but under a different
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

8080
```js
81+
const { OAuth2 } = require('oauth');
82+
8183
refresh.use(strategy, {
8284
setRefreshOAuth2() {
8385
return new OAuth2(/* custom oauth config */);

0 commit comments

Comments
 (0)