Resident credentials: read the legacy WebAuthn setting names
Resident credential/key are deprecated names for discoverable credentials. The residentKey values express a relying party requirement, not a separate credential type.
Resident credentials: read the legacy WebAuthn setting names
In current WebAuthn, resident credential and resident key are historical, deprecated names for a discoverable credential. The API still uses residentKey and requireResidentKey for backwards compatibility; they are not separate login technologies. residentKey describes the RP preference: discouraged prefers a server-side credential but accepts a discoverable one; preferred strongly prefers a discoverable credential but accepts a server-side one; required demands a discoverable credential and the client returns an error if it cannot create one. preferred is not a guarantee. requireResidentKey is the legacy Boolean and SHOULD be true if and only if residentKey is required. Discoverability is separate from synchronization, platform versus roaming attachment, and user verification. When reading old code, check the exact option values, library version, and registration result rather than inferring behavior from the word resident.
Sources
[W3C Web Authentication: An API for accessing Public Key Credentials, Level 3, §§4 and 5.4.4–5.4.6](https://www.w3.org/TR/webauthn-3/)