pbkdf2 deprecation warning when calling application.getApiKey()
Closed this issue · 1 comments
typerandom commented
When using Node v6.5.0 and calling application.getApiKey(...) the following deprecation warning is written to console:
(node:29446) DeprecationWarning: crypto.pbkdf2 without specifying a digest is deprecated. Please specify a digest
How to reproduce
-
Use Node version v6.5.0.
-
Run the application below:
var stormpath = require('stormpath'); var client = new stormpath.Client(); var applicationHref = 'https://api.stormpath.com/v1/applications/YOUR_APP_HREF'; var apiKeyId = 'YOUR_ACCOUNT_API_KEY_ID'; client.getApplication(applicationHref, function (err, application) { if (err) { return console.error(err); } application.getApiKey(apiKeyId, function (err, apiKey) { if (err) { return console.error(err); } console.log('Application retrieved! Deprecation warning should be written before this.'); }); });
-
Check the console for the following deprecation warning:
(node:29446) DeprecationWarning: crypto.pbkdf2 without specifying a digest is deprecated. Please specify a digest
shikloshi commented
+1