Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes Crypto Reference Error #164

Merged
merged 1 commit into from
Sep 20, 2016
Merged

Fixes Crypto Reference Error #164

merged 1 commit into from
Sep 20, 2016

Conversation

tayler-king
Copy link
Contributor

The initial variables crypto, request, querystring, url, and xrds are never initiated. This can cause a ReferenceError: crypto is not defined, as seen:

ReferenceError: crypto is not defined
at Object.<anonymous> (C:\Node\xxxxx\node_modules\openid\openid.js:30:12)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:456:32)
at tryModuleLoad (module.js:415:12)
at Function.Module._load (module.js:407:3)
at Module.require (module.js:466:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (C:\Node\xxxxx\node_modules\passport-openid-node6support\lib\passport-openid\ind
at Module._compile (module.js:541:32)

I have changed line 29 from var Buffer = require('buffer').Buffer; to var Buffer = require('buffer').Buffer, - this allows the variables following it to be initiated using var from the buffer initialization.

@havard havard merged commit afe2f87 into havard:master Sep 20, 2016
@tayler-king
Copy link
Contributor Author

Cheers.

@havard
Copy link
Owner

havard commented Sep 20, 2016

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants