{"action":"created","issue":{"url":"https://api.github.com/repos/stormpath/express-stormpath/issues/375","repository_url":"https://api.github.com/repos/stormpath/express-stormpath","labels_url":"https://api.github.com/repos/stormpath/express-stormpath/issues/375/labels{/name}","comments_url":"https://api.github.com/repos/stormpath/express-stormpath/issues/375/comments","events_url":"https://api.github.com/repos/stormpath/express-stormpath/issues/375/events","html_url":"https://github.com/stormpath/express-stormpath/issues/375","id":139126588,"number":375,"title":"Stormpath sibling dependency breaks apiKey option","user":{"login":"robertjd","id":132343,"avatar_url":"https://avatars.githubusercontent.com/u/132343?v=3","gravatar_id":"","url":"https://api.github.com/users/robertjd","html_url":"https://github.com/robertjd","followers_url":"https://api.github.com/users/robertjd/followers","following_url":"https://api.github.com/users/robertjd/following{/other_user}","gists_url":"https://api.github.com/users/robertjd/gists{/gist_id}","starred_url":"https://api.github.com/users/robertjd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertjd/subscriptions","organizations_url":"https://api.github.com/users/robertjd/orgs","repos_url":"https://api.github.com/users/robertjd/repos","events_url":"https://api.github.com/users/robertjd/events{/privacy}","received_events_url":"https://api.github.com/users/robertjd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stormpath/express-stormpath/labels/ready","name":"ready","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-07T23:31:10Z","updated_at":"2016-03-08T00:41:56Z","closed_at":null,"body":"This is a strange one, @typerandom can you confirm this reproduction?\r\n\r\nCreate a new node app, with the following package.json:\r\n\r\n```\r\n{\r\n  \"name\": \"test\",\r\n  \"main\": \"server.js\",\r\n  \"dependencies\": {\r\n    \"express\": \"~4.10.0\",\r\n    \"express-stormpath\": \"^3.0.1\",\r\n    \"stormpath\": \"^0.17.5\"\r\n  }\r\n}\r\n```\r\n\r\nInstall the modules, then run this server with some valid credentials and an application, and put them into the code as seen here:\r\n\r\n```\r\nvar express = require('express');\r\nvar stormpath = require('express-stormpath');\r\n\r\nvar app = express();\r\n\r\napp.use(stormpath.init(app, {\r\n  apiKey : {\r\n    id: 'xxx',\r\n    secret: 'xxx'\r\n  },\r\n  application: {\r\n    href: 'xxx'\r\n  }\r\n}));\r\n\r\napp.on('stormpath.ready',function(){\r\n  console.log('Stormpath Ready');\r\n});\r\n```\r\n\r\nI get the error  `Error: API key ID and secret is required.`\r\n\r\nThen I do the following:\r\n* Remove stormpath from package.json\r\n* Delete the node_modules folder\r\n* npm install\r\n\r\nThen I run server.js again, and it works: they keys are accepted, and Stormpath initializes."},"comment":{"url":"https://api.github.com/repos/stormpath/express-stormpath/issues/comments/193529162","html_url":"https://github.com/stormpath/express-stormpath/issues/375#issuecomment-193529162","issue_url":"https://api.github.com/repos/stormpath/express-stormpath/issues/375","id":193529162,"user":{"login":"robertjd","id":132343,"avatar_url":"https://avatars.githubusercontent.com/u/132343?v=3","gravatar_id":"","url":"https://api.github.com/users/robertjd","html_url":"https://github.com/robertjd","followers_url":"https://api.github.com/users/robertjd/followers","following_url":"https://api.github.com/users/robertjd/following{/other_user}","gists_url":"https://api.github.com/users/robertjd/gists{/gist_id}","starred_url":"https://api.github.com/users/robertjd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertjd/subscriptions","organizations_url":"https://api.github.com/users/robertjd/orgs","repos_url":"https://api.github.com/users/robertjd/repos","events_url":"https://api.github.com/users/robertjd/events{/privacy}","received_events_url":"https://api.github.com/users/robertjd/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T00:41:56Z","updated_at":"2016-03-08T00:41:56Z","body":"Did you make sure that you don't have your API keys specified elsewhere,\nsuch as environment variables, yaml files, or properties files in your\nhomedir?\n\nOn Mon, Mar 7, 2016 at 4:35 PM, Robin <notifications@github.com> wrote:\n\n> I just tried this and I wasn't able to reproduce the issue. I got the Stormpath\n> Ready message immediately.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/stormpath/express-stormpath/issues/375#issuecomment-193527131>\n> .\n>\n"}}