fix: avoid prompt in passkey registration

This commit is contained in:
AJV20 authored and nesquena-hermes committed 2026-05-25 00:14:38 +00:00
1 parent c60ff543b5
commit 7c257ae8f9
1 file changed
+1 -1
+1 -1
View File
@@ -6961,7 +6961,7 @@ async function loadPasskeys(){
async function registerPasskey(){
if(!window.PublicKeyCredential||!navigator.credentials){showToast('Passkeys require a supported browser and secure context.');return;}
const label=(window.prompt('Name this passkey', 'This device')||'Passkey').trim();
const label='This device';
try{
const optData=await api('/api/auth/passkey/register/options',{method:'POST',body:'{}'});
const pk=optData.publicKey;