Skip to content

Rename PublicKeyCredentialSource.uvInitialized #774

@zll600

Description

@zll600

Description

uvInitialized works fine for me. However, I suggest renaming uvInitialized to uvFlag or something similar.

Because as the spec mentioned:

A Boolean value indicating whether any credential from this public key credential source has had the UV flag set.

At the registration ceremony, the uvInitialized should be persisted as a property of a created credential record.

At the authentication ceremony, the RP may do something according to its authentication policy by comparing the uvInitialized kept in the database(or something) and the authData.UV.

So as a library, it's enough for us to return the authData.UV by the API. And let the RP do what it wants to do.


This idea may not be perfect. Feel free to close this issue 🫶

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions