credential-handler / authn.io

Credential Mediator Polyfill
https://github.com/w3c-ccg/credential-handler-api
Other
44 stars 8 forks source link

Step 2 of demo causes `Cannot read property '0' of undefined` #18

Closed dlongley closed 9 years ago

dlongley commented 9 years ago

When attempting to login to the issuer in step 2 of the demo, there are no mock credentials installed for the identity, causing the server to raise an Cannot read property '0' of undefined error in tests/lib/idp.js here: https://github.com/digitalbazaar/authorization.io/blob/0d2c18ae62097eba86bf44e5396ea14b5d62ddab/tests/lib/idp.js#L124

msporny commented 9 years ago

The mock credentials should be created when creating your identity. So, if you skip step #1, step #2 will fail. If the mock email credentials are no longer being created, that's an issue.

dlongley commented 9 years ago

Step 1 wasn't skipped when this bug occurred.

dlongley commented 9 years ago

Can't replicate after doing a full upgrade of npm and bower packages; closing.