How do you check the Backup Eligibility Flag, or Backup State flag? #422
Replies: 2 comments
-
Hi, At the moment, there is no convenient method to get these two values, but it should still be possible.
With the authenticator data object, you can call ->getReservedForFutureUse2(), which returns the flag bits 3, 4 and 5. I will add methods for simplifying this. |
Beta Was this translation helpful? Give feedback.
-
FYI, it is now implemented in the next minor version 4.7.x and it works fine. |
Beta Was this translation helpful? Give feedback.
-
With Google and Apple now synchronizing private keys between devices. There is now a Backup Eligibility and Backup State flag in the specification.
https://w3c.github.io/webauthn/#backup-eligibility
https://w3c.github.io/webauthn/#backup-state
How would one go about checking for that flag with this library?
It could be useful from a UI perspective to know a private key will be available from many devices. (e.g. Label it as an "Google Passkey" instead of a "Pixel 5a Passkey").
Beta Was this translation helpful? Give feedback.
All reactions