Skip to content

Commit

Permalink
Add missing commas so that "use strict" works (#161)
Browse files Browse the repository at this point in the history
Co-Authored-By: jpaddison3 <[email protected]>

When we experimented with adding "use strict" to our codebase in a way that accidentally covered all of `node_modules`, this file crashed on start because `crypto` is an assignment to an undeclared variable. It's an undeclared variable because the preceding line is missing a comma. Fix that, so that this file can pass `use strict`.

Co-authored-by: Frederik Prijck <[email protected]>
  • Loading branch information
jimrandomh and frederikprijck committed Aug 16, 2022
1 parent ee3d646 commit 7771d2d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ You can also see fully working demos using this library in our [Auth0 blog](http

The Auth0 Passport strategy is installed with npm.

npm install passport-auth0
```
npm install passport-auth0
```

## Customization

Expand Down
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
var util = require('util'),
OAuth2Strategy = require('passport-oauth').OAuth2Strategy,
axios = require('axios'),
pkg = require('../package.json')
crypto = require('crypto')
pkg = require('../package.json'),
crypto = require('crypto'),
querystring = require('querystring');

function encodeClientInfo(obj) {
Expand Down

0 comments on commit 7771d2d

Please sign in to comment.