- From: Isaiah Inuwa via GitHub <noreply@w3.org>
- Date: Wed, 29 Oct 2025 16:56:30 +0000
- To: public-webauthn@w3.org
> That seems more unwieldy, no?
If `userInfoIdentifier` and `userInfoAttribute` are defined as `Set`s, you could do:
```javascript
let c = await PublicKeyCredential.getClientCapabilities();
let supportedIdentifiers = new Set(["phone", "email"])
let supportedAttributes = new Set(["name"])
if (c.userInfoIdentifier?.isSupersetOf(supportedIdentifiers) &&
c.userInfoAttribute?.isSupersetOf(supportedAttributes))
{
// You can use requestUserInfo
}
```
which I like.
--
GitHub Notification of comment by iinuwa
Please view or discuss this issue at https://github.com/w3c/webauthn/issues/2336#issuecomment-3462686504 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 29 October 2025 16:56:31 UTC