Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/user-client-passkeys-registered.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@epilot/user-client": minor
---

Add `passkeys_registered` to `LoginParameters`

`getUserLoginParameters` now reports whether the user has at least one passkey registered, so the login UI can offer passkey authentication as an alternative to typing an MFA code.
8 changes: 8 additions & 0 deletions clients/user-client/src/openapi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,14 @@ declare namespace Components {
* Whether passkey login is enabled for this organization
*/
passkey_enabled?: boolean;
/**
* Whether the user has at least one passkey registered. Lets the login
* UI offer passkey authentication as an alternative to an MFA code.
* Discloses nothing that :beginPasskeyAuthentication doesn't already
* reveal for a known email address.
*
*/
passkeys_registered?: boolean;
}
/**
* A customized workplace navigation configuration. The ID is a content-hash, so identical configurations will have the same ID.
Expand Down
4 changes: 4 additions & 0 deletions clients/user-client/src/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2443,6 +2443,10 @@
"passkey_enabled": {
"type": "boolean",
"description": "Whether passkey login is enabled for this organization"
},
"passkeys_registered": {
"type": "boolean",
"description": "Whether the user has at least one passkey registered. Lets the login\nUI offer passkey authentication as an alternative to an MFA code.\nDiscloses nothing that :beginPasskeyAuthentication doesn't already\nreveal for a known email address.\n"
}
}
},
Expand Down
Loading