W3C home > Mailing lists > Public > public-webauthn@w3.org > July 2017

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

From: Ackermann Yuriy via GitHub <sysbot+gh@w3.org>
Date: Thu, 13 Jul 2017 13:13:20 +0000
To: public-webauthn@w3.org
Message-ID: <issue_comment.created-315073791-1499951599-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 07:26:26 UTC