Property UserId
UserId
Gets the ID of the user the passkey belongs to, which is also the passkey's WebAuthn user handle: authenticators store it with the passkey and return it when signing in.
Declaration
public required string UserId { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
The ID must not contain personal information such as an email address or user name (the WebAuthn specification forbids it), must never change or be reused for another user, and must be 1 to MaxIdLength bytes in UTF-8. IDs are compared exactly, as strings and as UTF-8 bytes, so a non-string ID formatted another way, such as with another culture, is another user ID.