feat(auth): make passkey enrollment optional on first login

Remove passkey requirement from user onboarding flow
Update UI badges to show passkeys as optional rather than pending
Update documentation to reflect the new behavior
This commit is contained in:
2026-04-27 13:25:05 +08:00
parent c214d643dd
commit 06165f80db
4 changed files with 11 additions and 10 deletions

View File

@@ -93,8 +93,8 @@
size="sm"
/>
<UBadge
:label="row.original.needsPasskeySetup ? 'Passkey pending' : 'Passkey ready'"
:color="row.original.needsPasskeySetup ? 'warning' : 'success'"
:label="row.original.passkeyCount > 0 ? 'Passkey ready' : 'No passkey'"
:color="row.original.passkeyCount > 0 ? 'success' : 'neutral'"
variant="soft"
size="sm"
/>

View File

@@ -59,8 +59,8 @@
</div>
<UBadge
:label="passkeys.length > 0 ? 'Ready' : 'Required'"
:color="passkeys.length > 0 ? 'success' : 'warning'"
:label="passkeys.length > 0 ? 'Ready' : 'Optional'"
:color="passkeys.length > 0 ? 'success' : 'neutral'"
variant="soft"
/>
</div>