Re: [webauthn] PublicKeyCredentialDescriptor.id and PublicKeyCredentialEntity.id type differ

And it makes things far more elegant:

Before
```js
...
user: {
    id: "1098237235409872"
    name: "john.p.smith@example.com",
    displayName: "John P. Smith",
    icon: "https://pics.acme.com/00/p/aBjjjpqPb.png"
  },
...

...
var acceptableCredential1 = {
    type: "public-key",
    id: encoder.encode("1098237235409872")
};
...
```

After
```js
...
user: {
    id: "1098237235409872"
    name: "john.p.smith@example.com",
    displayName: "John P. Smith",
    icon: "https://pics.acme.com/00/p/aBjjjpqPb.png"
  },
...

...
var acceptableCredential1 = {
    type: "public-key",
    id: "1098237235409872"
};
...
```

-- 
GitHub Notification of comment by herrjemand
Please view or discuss this issue at https://github.com/w3c/webauthn/issues/504#issuecomment-315073791 using your GitHub account

Received on Thursday, 13 July 2017 13:13:26 UTC